IChartPolarBarWedge

interface
Chart

Single wedge descriptor produced by the polar-bar geometry engine. Exposes the pre-computed SVG <path d="…"> for the arc, 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
Wedge index in the original data array.
d
requis
string
SVG <path d="…"> for the annular wedge shape.
color
requis
string
Resolved CSS colour string (intended for :style="{ fill: … }").
category
requis
string
Category label.
value
requis
number
Raw numeric value.
formatted
requis
string
Pre-formatted value string (via yAxisFormat or String(value)).
visible
requis
boolean
Whether this wedge is currently visible (legend toggle).
outerR
requis
number
Computed outer radius for this wedge.
innerR
requis
number
Fixed inner radius (shared across all wedges).
startAngle
requis
number
Start angle (radians).
endAngle
requis
number
End angle (radians).
midAngle
requis
number
Midpoint angle used for label placement.
labelX
requis
number
X coordinate of the category label anchor.
labelY
requis
number
Y coordinate of the category label anchor.
labelAnchor
requis
'start' | 'middle' | 'end'
SVG text-anchor for the category label.
percentage
requis
string
Percentage of total as a formatted string (e.g. "23.4%").
showValueLabel
requis
boolean
Whether the wedge is wide enough to host a value label inside.
valueLabelX
requis
number
X coordinate of the in-wedge value label.
valueLabelY
requis
number
Y coordinate of the in-wedge value label.

É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 wedge descriptors from the polar-bar engine

typescript