IChartHeatmapCell

interface
Chart

Pre-computed cell descriptor produced by the heatmap geometry engine. Contains every pre-computed value needed to render one <rect>, its label, and tooltip / accessibility content — the SFC renders without arithmetic.

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
Original index of the datum in series[0].data.
xCat
requis
string
Column category string.
yCat
requis
string
Row category string.
value
requis
number
Raw numeric value.
color
requis
string
Resolved CSS colour string for the cell fill.
rx
requis
number
SVG x position (left edge of the rect).
ry
requis
number
SVG y position (top edge of the rect).
rw
requis
number
Cell width in SVG user units.
rh
requis
number
Cell height in SVG user units.
labelX
requis
number
Centre X for the value label text.
labelY
requis
number
Centre Y for the value label text.
labelFits
requis
boolean
true when the cell is tall / wide enough to show the label.
visible
requis
boolean
Whether this cell is currently visible.

É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 cell geometry in a custom heatmap tooltip

vue