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.
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
- Index in the original sorted data array.
- keyrequisstring
- Unique key derived from the datum name — used in v-for :key.
- namerequisstring
- Display label.
- valuerequisnumber
- Raw numeric value.
- formattedrequisstring
- Pre-formatted value string (after applying yAxisFormat if present).
- colorrequisstring
- Resolved CSS colour string.
- xrequisnumber
- SVG x coordinate of the tile's top-left corner.
- yrequisnumber
- SVG y coordinate of the tile's top-left corner.
- widthrequisnumber
- Tile width in SVG user units.
- heightrequisnumber
- Tile height in SVG user units.
- visiblerequisboolean
- Whether the tile is currently visible (legend toggle).
- labelFitsrequisboolean
- 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