fix(explore): Time column label not formatted when GENERIC_X_AXES enabled (#21294)

This commit is contained in:
Kamil Gabryjelski 2022-09-01 18:07:49 +02:00 committed by GitHub
parent 742dbdd0a5
commit c3a00d43d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ export default function transformProps(
});
const dataTypes = getColtypesMapping(queriesData[0]);
const xAxisDataType = dataTypes?.[xAxisCol];
const xAxisDataType = dataTypes?.[xAxisCol] ?? dataTypes?.[xAxisOrig];
const xAxisType = getAxisType(xAxisDataType);
const series: SeriesOption[] = [];
const formatter = getNumberFormatter(contributionMode ? ',.0%' : yAxisFormat);