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 (apache#20627) (apache#24995)

(cherry picked from commit 2b63577)
  • Loading branch information
eschutho authored and jinghua-qa committed Aug 16, 2023
1 parent bf895e2 commit 0ad64fb
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import { invert } from 'lodash';
import {
AnnotationLayer,
AxisType,
CategoricalColorNamespace,
ensureIsArray,
GenericDataType,
Expand Down Expand Up @@ -447,23 +446,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 0ad64fb

Please sign in to comment.