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
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- indexrequirednumber
- Index in the original sorted data array.
- keyrequiredstring
- Unique key derived from the datum name — used in v-for :key.
- namerequiredstring
- Display label.
- valuerequirednumber
- Raw numeric value.
- formattedrequiredstring
- Pre-formatted value string (after applying yAxisFormat if present).
- colorrequiredstring
- Resolved CSS colour string.
- xrequirednumber
- SVG x coordinate of the tile's top-left corner.
- yrequirednumber
- SVG y coordinate of the tile's top-left corner.
- widthrequirednumber
- Tile width in SVG user units.
- heightrequirednumber
- Tile height in SVG user units.
- visiblerequiredboolean
- Whether the tile is currently visible (legend toggle).
- labelFitsrequiredboolean
- True when the tile is large enough to show the name + value label inline (min 60 × 24 SVG px).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Accessing tile geometry in a custom tile-label slot