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.
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.
- categoriesArray<string>
- Category labels — one per series entry. Rendered beside each bullet. Falls back to series[i].name when omitted.
- barColorTIntent | string'primary'
- Fill colour for the actual-value bar. Accepts a TIntent token or a raw CSS colour. Default 'primary'.
- targetColorTIntent | string'danger'
- Stroke colour for the target marker tick. Default 'danger'.
- rangeColorsArray<TIntent | string>['danger', 'warning', 'success']
- Fallback palette used when range.color is omitted. Cycled in array order across bands.
- orientationTDirection'horizontal'
- Layout direction. 'horizontal' renders bullets as rows; 'vertical' renders bullets as columns. Default 'horizontal'.
- barThicknessnumber0.45
- Thickness of the actual-value bar as a fraction of the slot height (horizontal) or slot width (vertical). Range [0, 1].
- showAxisbooleantrue
- 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