IChartBoxPlotBox
interface
Chart
Internal box descriptor produced by the OrigamChartBoxPlot geometry engine for each category slot. All coordinates are in SVG-space pixels. Consumed directly by the SVG renderer and exposed through the #tooltip slot.
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
- Category index (position in the data array).
- categoryrequisstring
- Category label.
- statsrequis{ min: number q1: number median: number q3: number max: number }
- Resolved five-number summary already coerced to SVG Y coords.
- rawStatsrequis{ min: number q1: number median: number q3: number max: number }
- Raw numeric five-number summary in data-space values.
- iqrrequisnumber
- IQR = Q3 − Q1 in data space.
- svgQ3requisnumber
- SVG Y coordinate for Q3 (top of box rect).
- svgQ1requisnumber
- SVG Y coordinate for Q1 (bottom of box rect).
- svgMedianrequisnumber
- SVG Y coordinate for the median line.
- svgMaxrequisnumber
- SVG Y coordinate for the upper whisker tip.
- svgMinrequisnumber
- SVG Y coordinate for the lower whisker tip.
- boxHeightrequisnumber
- Pre-computed box rectangle height (|svgQ1 − svgQ3|) to avoid template-level Math.abs().
- cxrequisnumber
- SVG X centre of the slot.
- halfBoxWrequisnumber
- Half-width of the box rectangle.
- halfCapWrequisnumber
- Half-width of the whisker cap segment.
- colorrequisstring
- Resolved CSS colour string for this box.
- outliersrequisArray<{ svgY: number, value: number }>
- SVG Y coordinates and raw values of each outlier dot.
- visiblerequisboolean
- Whether this box is currently visible after legend toggle.
É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 IChartBoxPlotBox in the #tooltip slot