Show shares of a whole as tiles sized by value, shaded in steps of the accent.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
data | TreemapItem[] | - | The shares, in any order; the map sorts them biggest first. |
| The shares, in any order; the map sorts them biggest first. | |||
label | string | Total | The heading over the map, and its accessible name. |
| The heading over the map, and its accessible name. | |||
unit | string | - | The unit every value is read in. |
| The unit every value is read in. | |||
locale | string | en-US | Formats the values and shares. |
| Formats the values and shares. | |||
shape | none | rounded | pill | - | |
className | string | - | |
focus | boolean | string | true | |