Skip to main content

Treemap

Show shares of a whole as tiles sized by value, shaded in steps of the accent.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
dataTreemapItem[]-The shares, in any order; the map sorts them biggest first.
The shares, in any order; the map sorts them biggest first.
labelstringTotalThe heading over the map, and its accessible name.
The heading over the map, and its accessible name.
unitstring-The unit every value is read in.
The unit every value is read in.
localestringen-USFormats the values and shares.
Formats the values and shares.
shapenone | rounded | pill-
classNamestring-
focusboolean | stringtrue