Skip to content
caliper ui pro docs

Sunburst

A radial hierarchy where each ring is a level and each arc a share of its parent.

Pro
Cloud spend by service
$79,900Cloud bill

Choose a slice with parts to zoom in; the centre zooms back out.

Cloud spend by service
PathValue
Cloud bill / Compute / Web servers18400
Cloud bill / Compute / Workers9200
Cloud bill / Compute / GPU jobs14100
Cloud bill / Storage / Object storage7300
Cloud bill / Storage / Databases / Primary6800
Cloud bill / Storage / Databases / Replicas4100
Cloud bill / Storage / Databases / Backups1900
Cloud bill / Storage / Logs3200
Cloud bill / Network / CDN5600
Cloud bill / Network / Data transfer4400
Cloud bill / Tooling / CI minutes2800
Cloud bill / Tooling / Monitoring2100

When to use

  • Showing how a total splits across two or three nested levels, such as region, product and plan.
  • The part-to-whole story matters more than exact values.

When not to use

  • There are more than three levels; a treemap reads more easily.
  • Readers need to compare close values; use bars.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/sunburst

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

Sunburst

7 props
PropTypeDefault
label *string—
root *SunburstNode—
unitstring""
formatValue((value: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes group and status semantics, with aria-label, aria-busy, aria-hidden and aria-current kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/sunburst.md

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

More in Advanced charts