mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
This commit is contained in:
parent
f94dc49fd0
commit
2b63577046
@ -20,7 +20,6 @@
|
|||||||
import { invert } from 'lodash';
|
import { invert } from 'lodash';
|
||||||
import {
|
import {
|
||||||
AnnotationLayer,
|
AnnotationLayer,
|
||||||
AxisType,
|
|
||||||
CategoricalColorNamespace,
|
CategoricalColorNamespace,
|
||||||
ensureIsArray,
|
ensureIsArray,
|
||||||
GenericDataType,
|
GenericDataType,
|
||||||
@ -447,23 +446,13 @@ export default function transformProps(
|
|||||||
rotate: xAxisLabelRotation,
|
rotate: xAxisLabelRotation,
|
||||||
},
|
},
|
||||||
minInterval:
|
minInterval:
|
||||||
xAxisType === AxisType.time && timeGrainSqla
|
xAxisType === 'time' && timeGrainSqla
|
||||||
? TIMEGRAIN_TO_TIMESTAMP[timeGrainSqla]
|
? TIMEGRAIN_TO_TIMESTAMP[timeGrainSqla]
|
||||||
: 0,
|
: 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 = {
|
let yAxis: any = {
|
||||||
...defaultYAxis,
|
...defaultYAxis,
|
||||||
type: logAxis ? AxisType.log : AxisType.value,
|
type: logAxis ? 'log' : 'value',
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
minorTick: { show: true },
|
minorTick: { show: true },
|
||||||
|
Loading…
Reference in New Issue
Block a user