Legend
Documentation Index
Fetch the complete documentation index at: /llms.txt. Use this file to discover all available pages before exploring further.
Legends that identify each data series in an ECharts chart.
Usage
Compose the legend as a child of the chart root. Pass variant to control the
indicator style, and isClickable to let each entry toggle selection of its
series.
<EChartsLineChart {data} config={chartConfig} xDataKey="month">
<EChartsLineChart.Legend variant="circle" isClickable />
<EChartsLineChart.Line dataKey="desktop" />
<EChartsLineChart.Line dataKey="mobile" />
</EChartsLineChart> Variants
Control the legend indicator style with the variant prop on <EChartsLineChart.Legend />.
Square
Circle
Circle Outline
Rounded Square (Default)
Rounded Square Outline
Vertical Bar
Horizontal Bar
API Reference
Props for the <EChartsLineChart.Legend /> part.