Legend
import { Legend } from '@wick-charts/react'; <Legend> {({ items }) => ( <ul>{items.map(i => <li key={i.id}>{i.label}</li>)}</ul> )}</Legend>Series legend with three interaction modes: toggle (click hides), solo (click isolates), isolate (click hides others). Use the render-prop child for fully custom rendering.
Series legend with three interaction modes: toggle (click hides), solo (click isolates), isolate (click hides others). Use the render-prop child for fully custom rendering.
Props
Render prop
// children: (ctx: LegendRenderContext) => ReactNode<Legend> {({ items }) => ( <ul>{items.map(i => <li key={i.id}>{i.label}</li>)}</ul> )}</Legend>