Treemap

Core

A squarified treemap: click to drill and the tiles grow to fill the view, with a breadcrumb back and metrics that morph every tile.

pnpm dlx shadcn@latest add https://wui.alann.works/r/treemap.json

191

Core145
Pro46

wUI, 191

Bundle breakdown
PathValueShare of parent
Core14575.9%
Pro4624.1%

API Reference

PropTypeDefault
data*TreemapNoderequired
label*stringrequired
formatValue(value: number) => string—
colorLabelstring—
formatColor(value: number) => string—
colorDomain[number, number]—
focusstring—
defaultFocusstring—
onFocusChange(id: string) => void—
heightnumber—
emptyLabelstring—
refRef<HTMLElement>—
classNamestring—
Categories
data
Dependencies
motion