TreemapChart
Nested rectangles sized by value, for many parts of a whole.
Click a mark to pin its value
Media 412Backups 268Projects 174Logs 91Archive 56
View data
| Label | Value |
|---|---|
| Media | 412 |
| Backups | 268 |
| Projects | 174 |
| Logs | 91 |
| Archive | 56 |
<TreemapChart title="Storage by folder (GB)" data={data} />Usage
Data
data takes { label: string; value: number; color?: string }[]. Input arrays are never mutated and order is preserved.
- Values must be non-negative.
- Each value is printed on the chart. The
treemaphelper returns the tiles if you want to draw your own.
Every chart also accepts the common props: description, height, color, variant, animate, formatValue and className.