IChartParetoBar
interface
Chart
Pre-computed bar descriptor produced by the Pareto geometry engine. Contains all pre-computed values needed to render one <rect> column, its label, and the cumulative percentage dot.
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
- Index in the sorted data array (0 = highest value).
- categoryrequisstring
- Category label from the datum.
- valuerequisnumber
- Raw numeric value from the datum.
- formattedValuerequisstring
- Pre-formatted value string.
- sharerequisnumber
- Individual share of total (0–1).
- cumulativerequisnumber
- Cumulative percentage up to and including this bar (0–1).
- colorrequisstring
- Resolved CSS colour string (for fill).
- xrequisnumber
- SVG X of the left edge of the bar.
- yrequisnumber
- SVG Y of the top edge of the bar.
- wrequisnumber
- Bar width in SVG pixels.
- hrequisnumber
- Bar height in SVG pixels.
- cxrequisnumber
- X center of the bar — used for the X-axis tick label and cumulative line dot.
- dotYrequisnumber
- Y of the cumulative percentage dot on the right Y-axis scale.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Accessing bar descriptors from the Pareto engine