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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

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

vue