diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts index 89d5c1e03b3..ca0e079609d 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts @@ -170,7 +170,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(