You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/01/28 14:47:13 UTC

[superset] branch master updated: fix(plugin-chart-echarts): use verbose x-axis name when defined (#18217)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cec4677  fix(plugin-chart-echarts): use verbose x-axis name when defined (#18217)
cec4677 is described below

commit cec467797187324269971d870520b360c56419f3
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Fri Jan 28 16:45:57 2022 +0200

    fix(plugin-chart-echarts): use verbose x-axis name when defined (#18217)
---
 .../plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts       | 2 +-
 1 file changed, 1 insertion(+), 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 bb3dca7..32ab836 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts
@@ -127,7 +127,7 @@ export default function transformProps(
   }: EchartsTimeseriesFormData = { ...DEFAULT_FORM_DATA, ...formData };
   const colorScale = CategoricalColorNamespace.getScale(colorScheme as string);
   const rebasedData = rebaseTimeseriesDatum(data, verboseMap);
-  const xAxisCol = xAxisOrig || DTTM_ALIAS;
+  const xAxisCol = verboseMap[xAxisOrig] || xAxisOrig || DTTM_ALIAS;
   const rawSeries = extractSeries(rebasedData, {
     fillNeighborValue: stack && !forecastEnabled ? 0 : undefined,
     xAxis: xAxisCol,