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.

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
Index in the sorted data array (0 = highest value).
category
requis
string
Category label from the datum.
value
requis
number
Raw numeric value from the datum.
formattedValue
requis
string
Pre-formatted value string.
share
requis
number
Individual share of total (0–1).
cumulative
requis
number
Cumulative percentage up to and including this bar (0–1).
color
requis
string
Resolved CSS colour string (for fill).
x
requis
number
SVG X of the left edge of the bar.
y
requis
number
SVG Y of the top edge of the bar.
w
requis
number
Bar width in SVG pixels.
h
requis
number
Bar height in SVG pixels.
cx
requis
number
X center of the bar — used for the X-axis tick label and cumulative line dot.
dotY
requis
number
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

typescript