Icicle chart
A hierarchy as stacked rows, each block as wide as its share. Choose a block to zoom; it widens and its descendants spread beneath it. Escape steps out.
Choose a block to zoom in. Escape or the path above zooms out.
| Path | Value |
|---|---|
| Cloud spend | 268 |
| Cloud spend › Production | 195 |
| Cloud spend › Production › Compute | 131 |
| Cloud spend › Production › Compute › Web | 42 |
| Cloud spend › Production › Compute › Workers | 28 |
| Cloud spend › Production › Compute › GPU | 61 |
| Cloud spend › Production › Databases | 47 |
| Cloud spend › Production › Databases › Postgres | 38 |
| Cloud spend › Production › Databases › Redis | 9 |
| Cloud spend › Production › Network | 17 |
| Cloud spend › Staging | 20 |
| Cloud spend › Staging › Compute | 14 |
| Cloud spend › Staging › Databases | 6 |
| Cloud spend › Data | 53 |
| Cloud spend › Data › Warehouse | 33 |
| Cloud spend › Data › Pipelines | 12 |
| Cloud spend › Data › Storage | 8 |
When to use
- Cloud spend by account, service and resource.
- Bundle size by package, or headcount by org.
When not to use
- Flat categories; use the bar chart.
- Hierarchies deeper than five levels at once.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/icicle-chart
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
icicleTotal
4 props
PropTypeDefault
id *string—
label *string—
valuenumber—
childrenreadonly IcicleNode[]—
IcicleChart
8 props
PropTypeDefaultDescription
label *string—
root *IcicleNode—
unitstring""
formatValue((value: number) => string)numberText
levelsnumber4How many rows to show below the focused block.
loadingboolean—
errorstring—
classNamestring—
Keyboard
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It is built on native elements and keeps aria-label, aria-busy, aria-hidden and aria-current in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/icicle-chart.mdThe index of every part is at /llms.txt.