Charts
Treemap
Share and direction at once. Squarified, so every tile stays readable.
Props
| Property | Type | Default | Description |
|---|---|---|---|
data | ChartDatum[] | — | Category rows. Sorted by value and squarified, so tile order is derived, not given. |
dataKey | string | "value" | Numeric field that sets tile area. Rows at or below zero are dropped. |
labelKey | string | "label" | Tile name. Hidden on tiles too small to read it. |
deltaKey | string | "delta" | Signed change per row. Only read by the diverging variant. |
variant | "heat" | "diverging" | "heat" | heat tints by share of the largest tile. diverging colours by the sign of delta and tints by its size. |
height | number | 260 | Height in px. Width is fluid. |
className | string | — | Outer wrapper. |