feat: Enables ECharts legend selector (#23590)

This commit is contained in:
Michael S. Molina
2023-04-06 09:36:34 -03:00
committed by GitHub
parent adcb8cf0ac
commit 30f210b842
8 changed files with 80 additions and 12 deletions

View File

@@ -171,6 +171,7 @@ export default function transformProps(
inContextMenu,
filterState,
emitCrossFilters,
theme,
} = chartProps;
const data: DataRecord[] = queriesData[0].data || [];
@@ -324,7 +325,7 @@ export default function transformProps(
),
},
legend: {
...getLegendProps(legendType, legendOrientation, showLegend),
...getLegendProps(legendType, legendOrientation, showLegend, theme),
data: categoryList,
},
series,