Skip to content
caliper ui pro docs

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.

Pro
Cloud spend, September ($k)

Choose a block to zoom in. Escape or the path above zooms out.

Cloud spend, September ($k)
PathValue
Cloud spend268
Cloud spend › Production195
Cloud spend › Production › Compute131
Cloud spend › Production › Compute › Web42
Cloud spend › Production › Compute › Workers28
Cloud spend › Production › Compute › GPU61
Cloud spend › Production › Databases47
Cloud spend › Production › Databases › Postgres38
Cloud spend › Production › Databases › Redis9
Cloud spend › Production › Network17
Cloud spend › Staging20
Cloud spend › Staging › Compute14
Cloud spend › Staging › Databases6
Cloud spend › Data53
Cloud spend › Data › Warehouse33
Cloud spend › Data › Pipelines12
Cloud spend › Data › Storage8

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.md

The index of every part is at /llms.txt.

More in Advanced charts