Tree Map
dataHierarchical tree map visualization for proportional data analysis.
Preview
No preview available
Check the code examples below.
Installation
npm install @launchapp/design-systemImport
import { TreeMap } from "@launchapp/design-system";Examples
Budget breakdown
<TreeMap data={{ name: "Budget", children: [ { name: "Engineering", value: 400000 }, { name: "Marketing", value: 200000 }, { name: "Design", value: 100000 }, { name: "Operations", value: 80000 }, ], }} height={300}/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
data* | TreeMapNode | — | Hierarchical tree map data with name and children. |
width | number | — | Chart width in pixels. |
height | number | 400 | Chart height in pixels. |