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.
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
- Wedge index in the original data array.
- drequisstring
- SVG <path d="…"> for the annular wedge shape.
- colorrequisstring
- Resolved CSS colour string (intended for :style="{ fill: … }").
- categoryrequisstring
- Category label.
- valuerequisnumber
- Raw numeric value.
- formattedrequisstring
- Pre-formatted value string (via yAxisFormat or String(value)).
- visiblerequisboolean
- Whether this wedge is currently visible (legend toggle).
- outerRrequisnumber
- Computed outer radius for this wedge.
- innerRrequisnumber
- Fixed inner radius (shared across all wedges).
- startAnglerequisnumber
- Start angle (radians).
- endAnglerequisnumber
- End angle (radians).
- midAnglerequisnumber
- Midpoint angle used for label placement.
- labelXrequisnumber
- X coordinate of the category label anchor.
- labelYrequisnumber
- Y coordinate of the category label anchor.
- labelAnchorrequis'start' | 'middle' | 'end'
- SVG text-anchor for the category label.
- percentagerequisstring
- Percentage of total as a formatted string (e.g. "23.4%").
- showValueLabelrequisboolean
- Whether the wedge is wide enough to host a value label inside.
- valueLabelXrequisnumber
- X coordinate of the in-wedge value label.
- valueLabelYrequisnumber
- 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