Skip to content

Commit

Permalink
Remove unnecessary series check
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaDerevyankina committed Nov 17, 2020
1 parent 5c620a1 commit f665a79
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ export class TimeseriesVisualization extends Component {
seriesDataRow.useDefaultGroupDomain = !isCustomDomain;
});

const tickFormatter = allSeriesHaveSameFormatters ? seriesGroupTickFormatter : (val) => val;

if (isCustomDomain) {
TimeseriesVisualization.addYAxis(yAxis, {
domain,
Expand All @@ -217,7 +215,7 @@ export class TimeseriesVisualization extends Component {
});
} else if (!mainDomainAdded) {
TimeseriesVisualization.addYAxis(yAxis, {
tickFormatter: series.length === 1 ? undefined : tickFormatter,
tickFormatter: allSeriesHaveSameFormatters ? seriesGroupTickFormatter : (val) => val,
id: yAxisIdGenerator('main'),
groupId: mainAxisGroupId,
position: model.axis_position,
Expand Down

0 comments on commit f665a79

Please sign in to comment.