Skip to content

Commit 6bcad3f

Browse files
committed
Fix TSVB multilayer axis with lines or stacked bars
1 parent 9c42539 commit 6bcad3f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries

src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ export const TimeSeries = ({
150150
};
151151

152152
const shouldUseNewTimeAxis =
153-
series.some(({ stack }) => stack !== STACKED_OPTIONS.NONE) && !useLegacyTimeAxis;
153+
series.every(
154+
({ stack, bars, lines }) => (bars?.show && stack !== STACKED_OPTIONS.NONE) || lines?.show
155+
) && !useLegacyTimeAxis;
154156

155157
return (
156158
<Chart ref={chartRef} renderer="canvas" className={classes}>

0 commit comments

Comments
 (0)