Skip to content

Commit

Permalink
fix(plugin-chart-echarts): use verbose x-axis name when defined
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Jan 28, 2022
1 parent b2bfb92 commit c22059a
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 c22059a

Please sign in to comment.