IChartTreemapTile

interface
Chart

Internal tile descriptor produced by the treemap layout engine. All coordinates are in SVG-user-unit space (the fixed 600 × 400 viewport). Consumed by the template to render a single <rect> + optional inline label.

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
Index in the original sorted data array.
key
requis
string
Unique key derived from the datum name — used in v-for :key.
name
requis
string
Display label.
value
requis
number
Raw numeric value.
formatted
requis
string
Pre-formatted value string (after applying yAxisFormat if present).
color
requis
string
Resolved CSS colour string.
x
requis
number
SVG x coordinate of the tile's top-left corner.
y
requis
number
SVG y coordinate of the tile's top-left corner.
width
requis
number
Tile width in SVG user units.
height
requis
number
Tile height in SVG user units.
visible
requis
boolean
Whether the tile is currently visible (legend toggle).
labelFits
requis
boolean
True when the tile is large enough to show the name + value label inline (min 60 × 24 SVG px).

É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 tile geometry in a custom tile-label slot

vue