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.

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.

index
requis
number
Slice index in the original data array.
d
requis
string
SVG <path d="…"> for the trapezoid.
color
requis
string
Resolved CSS colour string.
category
requis
string
Category label (from categories[index] or fallback).
value
requis
number
Raw numeric value from series.data[index].
formatted
requis
string
Pre-formatted value string.
visible
requis
boolean
Whether this slice is currently visible (legend toggle).
labelX
requis
number
Label anchor X — centre of the trapezoid face for inside placement; right-edge midpoint + offset for outside.
labelY
requis
number
Label anchor Y.
labelAnchor
requis
'middle' | 'start'
SVG text-anchor attribute matching labelX placement.
leaderX
requis
number
Y of the leader-line target (band right edge midpoint).
labelFitsInside
requis
boolean
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

typescript