fix(plugin-chart-echarts): use scale for truncating x-axis (#26269)

This commit is contained in:
Ville Brofeldt
2023-12-14 10:13:39 -08:00
committed by GitHub
parent 429e2a33c3
commit 67468c46c0
7 changed files with 172 additions and 39 deletions

View File

@@ -460,7 +460,13 @@ export default function transformProps(
xAxisType === AxisType.time && timeGrainSqla
? TIMEGRAIN_TO_TIMESTAMP[timeGrainSqla]
: 0,
...getMinAndMaxFromBounds(xAxisType, truncateXAxis, xAxisMin, xAxisMax),
...getMinAndMaxFromBounds(
xAxisType,
truncateXAxis,
xAxisMin,
xAxisMax,
seriesType,
),
};
let yAxis: any = {