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.
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.
- seriesrequisIChartSeries
- The series this legend entry represents.
- indexrequisnumber
- Zero-based index of the series in the parent chart series array.
- colorrequisstring
- Pre-resolved CSS colour string for the swatch.
- visiblerequisboolean
- 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