diff --git a/src/components/ECharts/MultiSeriesChart/index.tsx b/src/components/ECharts/MultiSeriesChart/index.tsx index 526eeb845..fef3ab5de 100644 --- a/src/components/ECharts/MultiSeriesChart/index.tsx +++ b/src/components/ECharts/MultiSeriesChart/index.tsx @@ -4,6 +4,17 @@ import { useDarkModeManager } from '~/contexts/LocalStorage' import { useDefaults } from '../useDefaults' import { mergeDeep } from '../utils' +function LegendButton({ text, onClick }) { + return ( + + ) +} + interface IMultiSeriesChartProps { series?: Array<{ data: Array<[number, number]> @@ -263,6 +274,17 @@ export default function MultiSeriesChart({ return (
+
+ chartRef.current.dispatchAction({ type: 'legendAllSelect' })} /> + + processedSeries.forEach((serie) => + chartRef.current.dispatchAction({ type: 'legendUnSelect', name: serie.name }) + ) + } + /> +
)