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.

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
Category index (position in the data array).
category
requis
string
Category label.
stats
requis
{ min: number q1: number median: number q3: number max: number }
Resolved five-number summary already coerced to SVG Y coords.
rawStats
requis
{ min: number q1: number median: number q3: number max: number }
Raw numeric five-number summary in data-space values.
iqr
requis
number
IQR = Q3 − Q1 in data space.
svgQ3
requis
number
SVG Y coordinate for Q3 (top of box rect).
svgQ1
requis
number
SVG Y coordinate for Q1 (bottom of box rect).
svgMedian
requis
number
SVG Y coordinate for the median line.
svgMax
requis
number
SVG Y coordinate for the upper whisker tip.
svgMin
requis
number
SVG Y coordinate for the lower whisker tip.
boxHeight
requis
number
Pre-computed box rectangle height (|svgQ1 − svgQ3|) to avoid template-level Math.abs().
cx
requis
number
SVG X centre of the slot.
halfBoxW
requis
number
Half-width of the box rectangle.
halfCapW
requis
number
Half-width of the whisker cap segment.
color
requis
string
Resolved CSS colour string for this box.
outliers
requis
Array<{ svgY: number, value: number }>
SVG Y coordinates and raw values of each outlier dot.
visible
requis
boolean
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

vue