IChartLegendItem

interface
Chart

Aggregated legend entry — one per series. Pre-resolved colour so the legend renderer doesn't have to re-look-up the palette. Produced by useChart().legend.value.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

series
requis
IChartSeries
The series this legend entry represents.
index
requis
number
Zero-based index of the series in the parent chart series array.
color
requis
string
Pre-resolved CSS colour string for the swatch.
visible
requis
boolean
Current visibility state — toggled when the user clicks the legend entry.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Rendering a custom legend from the composable

typescript