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 ofekisr committed Feb 8, 2022
1 parent 1e02a86 commit ca6dd41
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 ca6dd41

Please sign in to comment.