You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2022/09/20 20:50:14 UTC
[superset] 04/29: Temporal X Axis values are not properly displayed if the time column has a custom label defined (#20819)
This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a commit to branch 2.0-test
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 8c2ca2d8d8dedf22ac164a22c6fd68e50b1699fe
Author: Diego Medina <di...@gmail.com>
AuthorDate: Fri Jul 22 06:05:37 2022 -0300
Temporal X Axis values are not properly displayed if the time column has a custom label defined (#20819)
(cherry picked from commit 51869f32acd24af183f7c07bb515835bb10a7bc6)
---
.../plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 89d5c1e03b..ca0e079609 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(