Skip to content

Commit

Permalink
fix(plugin-chart-echarts): use verbose x-axis name when defined (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and shcoderAlex committed Feb 7, 2022
1 parent d4ea596 commit 5c3459e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5c3459e

Please sign in to comment.