fix: Revert "fix(chart): Time Series set showMaxLabel as null for time xAxis (#20627) (#24995)

This commit is contained in:
Elizabeth Thompson 2023-08-16 09:51:00 -07:00 committed by GitHub
parent f94dc49fd0
commit 2b63577046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 13 deletions

View File

@ -20,7 +20,6 @@
import { invert } from 'lodash';
import {
AnnotationLayer,
AxisType,
CategoricalColorNamespace,
ensureIsArray,
GenericDataType,
@ -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 },