Treemap
Chart
Squarified value tiles: each datum becomes a ramp-colored rectangle whose area is proportional to its value, packed largest-first with near-square aspect ratios, with the label and formatted value rendered inside only when the tile fits them.
Playground
Every control sets a real prop of TreemapProps. The JSX below updates as you go.
Web
iOS
Android
JSX · TreemapProps
Variants
2 examples from src/charts/treemap/treemap.md, each rendered live from its own JSX.
Anatomy
1
Chart frame
2
Tile
3
Label
4
Value
Dimmed parts appear only in some states or variants.
Props
12 props on TreemapProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Tab
Focuses the plot
ArrowLeft
ArrowRight
Steps through points when inspectable
Escape
Clears the inspected point
Semantics
Roles
group
image
img
ARIA on web
aria-label
From the docs
Flat one-level data; nesting and drill-down are deferred scope. Press a tile to flag its value and share (the others dim); the accessible name carries every tile with its share regardless of which labels fit.
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
Flat one-level data; nesting and drill-down are deferred scope. Press a tile to flag its value and share (the others dim); the accessible name carries every tile with its share regardless of which labels fit.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--c1
--c2
--c3
--c4
--c5
--c6
--c7
--fd
--fm
--ft
--ln
--sf
--sh-sm
--tx3