IChartBulletBullet

interface
Chart

Pre-computed geometry descriptor for a single bullet in a bullet chart. Produced by the bullet layout engine inside OrigamChartBullet — contains resolved colours, slot coordinates, and the maximum axis value.

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
Position of this bullet in the original series array.
category
requis
string
Category label from categories[index] or series[index].name.
datum
requis
IChartBulletDatum
Raw datum ({value, target, ranges}).
visible
requis
boolean
Whether this bullet is currently visible (legend toggle).
barFill
requis
string
Resolved fill colour for the actual-value bar.
targetStroke
requis
string
Resolved stroke colour for the target tick.
rangeFills
requis
Array<string>
Resolved fills for each range band, parallel to datum.ranges.
slotX
requis
number
SVG x of the bullet slot origin (horizontal: left edge; vertical: top edge).
slotY
requis
number
SVG y of the bullet slot origin.
slotW
requis
number
Total slot width (horizontal: plot width; vertical: slot column width).
slotH
requis
number
Total slot height (horizontal: slot row height; vertical: plot height).
maxRange
requis
number
Maximum axis value = max(ranges[-1].to, target, value).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Reading the bullet descriptor in a custom tooltip slot

vue