# Chart Treemap

Treemap of cloud spend by team and service with drill-down and breadcrumbs.

- id: `chart-treemap`
- Page: https://agentic-ui-kit.com/components/chart-treemap
- Live preview: https://agentic-ui-kit.com/live/component/chart-treemap?piece=chart-treemap

## Install

```bash
agentic-ui add chart-treemap
npx shadcn@4.17.0 add @agentic-ui/chart-treemap
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york), Base UI (registry variant base-vega)
- **Capabilities:** hierarchical-treemap, squarified-layout, drill-down, breadcrumb-navigation, keyboard-drill-up, table-alternative, chart-token-palette, controlled-path, dark-mode
- **Intents:** show-composition, explore-detail
- **Suits domains:** analytics, finance, devtools, file-storage, operations, marketing
- **Interaction:** drill-down, breadcrumbs, keyboard-navigation, view-switching
- **Screen role:** overview
- **Density:** medium
- **Dark mode:** yes
- **Use it for:** treemap of cloud spend by team and service with drill-down and breadcrumbs, disk usage or storage breakdown by folder as proportional rectangles, budget or revenue composition by category and sub-category, click to zoom in, portfolio allocation by sector and holding as a treemap
- **Avoid when:** showing change over time (use a line or area chart), flows between stages (use chart-sankey-flow), a flat list of 3 to 5 shares that a donut or bar chart shows more clearly
- **Preserve when adapting:** squarified-layout, drill-down-model, table-alternative
- **Replace when adapting:** data-tree, unit-and-formatter, chart-token-hues
- **Adaptation effort:** low
- **Coupling:** low
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** button
- **npm dependencies:** lucide-react
- **npm dependencies (registry):** lucide-react@0.577.0
- **Registry dependencies:** lib-primitives
