diff --git a/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js b/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js index 11675c1dc20d4..af923920f6b45 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js +++ b/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js @@ -161,8 +161,8 @@ export class TimeseriesVisualization extends Component { const yAxis = []; let mainDomainAdded = false; - const allSeriesHavePercentFormatter = seriesModel.every( - (seriesGroup) => seriesGroup.formatter === 'percent' + const allSeriesHaveSameFormatters = seriesModel.every( + (seriesGroup) => seriesGroup.formatter === seriesModel[0].formatter ); this.showToastNotification = null; @@ -201,9 +201,7 @@ export class TimeseriesVisualization extends Component { seriesDataRow.useDefaultGroupDomain = !isCustomDomain; }); - const tickFormatter = allSeriesHavePercentFormatter - ? this.yAxisStackedByPercentFormatter - : (val) => val; + const tickFormatter = allSeriesHaveSameFormatters ? seriesGroupTickFormatter : (val) => val; if (isCustomDomain) { TimeseriesVisualization.addYAxis(yAxis, {