Skip to content

Commit

Permalink
fix: Revert "fix(chart): Time Series set showMaxLabel as null for tim…
Browse files Browse the repository at this point in the history
…e xAxis (#20627) (#24995)
  • Loading branch information
eschutho committed Aug 17, 2023
1 parent 8405ec4 commit 8a92c92
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,23 +339,13 @@ export default function transformProps(
rotate: xAxisLabelRotation,
},
minInterval:
xAxisType === AxisType.time && timeGrainSqla
xAxisType === 'time' && timeGrainSqla
? TIMEGRAIN_TO_TIMESTAMP[timeGrainSqla]
: 0,
};

if (xAxisType === AxisType.time) {
/**
* Overriding default behavior (false) for time axis regardless of the granilarity.
* Not including this in the initial declaration above so if echarts changes the default
* behavior for other axist types we won't unintentionally override it
*/
xAxis.axisLabel.showMaxLabel = null;
}

let yAxis: any = {
...defaultYAxis,
type: logAxis ? AxisType.log : AxisType.value,
type: logAxis ? 'log' : 'value',
min,
max,
minorTick: { show: true },
Expand Down

0 comments on commit 8a92c92

Please sign in to comment.