Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Oct 4, 2021
1 parent 51fd5f8 commit 74ce448
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/vis_types/xy/public/utils/get_series_params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ const makeSerie = (
interpolate: InterpolationMode.Linear,
lineWidth: 2,
valueAxis: defaultValueAxis,
data,
};
return lastSerie ? { ...lastSerie, data } : defaultSerie;
return { ...defaultSerie, ...lastSerie, data };
};
export const getSeriesParams = (
aggs: AggConfigs | undefined,
Expand Down

0 comments on commit 74ce448

Please sign in to comment.