A legend component that can be placed inside any <Chart> alongside any Plot.
It automatically reads the series names from the initial data and their colors
from the seriesStyles map (falling back to the chart's base color).
The legend respects the active seriesFilter, showing only the matching series.
A legend component that can be placed inside any
<Chart>alongside any Plot. It automatically reads the series names from the initial data and their colors from theseriesStylesmap (falling back to the chart's basecolor). The legend respects the activeseriesFilter, showing only the matching series.