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.
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
- Position of this bullet in the original series array.
- categoryrequisstring
- Category label from categories[index] or series[index].name.
- datumrequisIChartBulletDatum
- Raw datum ({value, target, ranges}).
- visiblerequisboolean
- Whether this bullet is currently visible (legend toggle).
- barFillrequisstring
- Resolved fill colour for the actual-value bar.
- targetStrokerequisstring
- Resolved stroke colour for the target tick.
- rangeFillsrequisArray<string>
- Resolved fills for each range band, parallel to datum.ranges.
- slotXrequisnumber
- SVG x of the bullet slot origin (horizontal: left edge; vertical: top edge).
- slotYrequisnumber
- SVG y of the bullet slot origin.
- slotWrequisnumber
- Total slot width (horizontal: plot width; vertical: slot column width).
- slotHrequisnumber
- Total slot height (horizontal: slot row height; vertical: plot height).
- maxRangerequisnumber
- 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