IChartBulletProps

interface
Chart

Props for <OrigamChartBullet> — the bullet / KPI chart family. Each series entry renders one bullet combining range bands, an actual-value bar, and a target marker tick (Stephen Few design).

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

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

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.

categories
Array<string>
Category labels — one per series entry. Rendered beside each bullet. Falls back to series[i].name when omitted.
barColor
TIntent | string
'primary'
Fill colour for the actual-value bar. Accepts a TIntent token or a raw CSS colour. Default 'primary'.
targetColor
TIntent | string
'danger'
Stroke colour for the target marker tick. Default 'danger'.
rangeColors
Array<TIntent | string>
['danger', 'warning', 'success']
Fallback palette used when range.color is omitted. Cycled in array order across bands.
orientation
TDirection
'horizontal'
Layout direction. 'horizontal' renders bullets as rows; 'vertical' renders bullets as columns. Default 'horizontal'.
barThickness
number
0.45
Thickness of the actual-value bar as a fraction of the slot height (horizontal) or slot width (vertical). Range [0, 1].
showAxis
boolean
true
Show the quantitative axis. Default true.
xAxisFormat
(value: string | number) => string
X-axis tick formatter applied to axis tick labels.
yAxisFormat
(value: number) => string
Y-axis tick formatter applied to axis tick labels (vertical orientation).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Horizontal bullet chart with three KPI bullets

vue