IChartPyramidSlice
interface
Chart
Single slice descriptor produced by the pyramid geometry engine. Exposes the pre-computed SVG <path d="…"> for the trapezoid, the label anchor position, and all data needed to render accessibility text and tooltip content.
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.
- indexrequisnumber
- Slice index in the original data array.
- drequisstring
- SVG <path d="…"> for the trapezoid.
- colorrequisstring
- Resolved CSS colour string.
- categoryrequisstring
- Category label (from categories[index] or fallback).
- valuerequisnumber
- Raw numeric value from series.data[index].
- formattedrequisstring
- Pre-formatted value string.
- visiblerequisboolean
- Whether this slice is currently visible (legend toggle).
- labelXrequisnumber
- Label anchor X — centre of the trapezoid face for inside placement; right-edge midpoint + offset for outside.
- labelYrequisnumber
- Label anchor Y.
- labelAnchorrequis'middle' | 'start'
- SVG text-anchor attribute matching labelX placement.
- leaderXrequisnumber
- Y of the leader-line target (band right edge midpoint).
- labelFitsInsiderequisboolean
- true when the band is wide enough to host the label inside.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Consuming slice descriptors from the pyramid engine