feat(plugin-chart-echarts): add x-axis sort to multi series (#23644)

This commit is contained in:
Ville Brofeldt
2023-04-12 16:13:41 +03:00
committed by GitHub
parent 587e7759b1
commit f49702feff
11 changed files with 317 additions and 63 deletions

View File

@@ -146,6 +146,8 @@ export default function transformProps(
truncateYAxis,
xAxis: xAxisOrig,
xAxisLabelRotation,
xAxisSortSeries,
xAxisSortSeriesAscending,
xAxisTimeFormat,
xAxisTitle,
xAxisTitleMargin,
@@ -200,6 +202,10 @@ export default function transformProps(
isHorizontal,
sortSeriesType,
sortSeriesAscending,
xAxisSortSeries: groupby.length ? xAxisSortSeries : undefined,
xAxisSortSeriesAscending: groupby.length
? xAxisSortSeriesAscending
: undefined,
});
const showValueIndexes = extractShowValueIndexes(rawSeries, {
stack,