Temporal X Axis values are not properly displayed if the time column has a custom label defined (#20819)

This commit is contained in:
Diego Medina
2022-07-22 06:05:37 -03:00
committed by GitHub
parent fe9eb58ede
commit 51869f32ac

View File

@@ -173,7 +173,8 @@ export default function transformProps(
Object.values(rawSeries).map(series => series.name as string),
);
const isAreaExpand = stack === AreaChartExtraControlsValue.Expand;
const xAxisDataType = dataTypes?.[xAxisCol];
const xAxisDataType = dataTypes?.[xAxisCol] ?? dataTypes?.[xAxisOrig];
const xAxisType = getAxisType(xAxisDataType);
const series: SeriesOption[] = [];
const formatter = getNumberFormatter(