Streamgraph
Stacked series that flow around a centre line.
| Point | Search | Direct | Social |
|---|---|---|---|
| Jan | 30 | 20 | 12 |
| Feb | 37 | 25 | 15 |
| Mar | 33 | 21 | 18 |
| Apr | 40 | 26 | 13 |
| May | 36 | 22 | 16 |
| Jun | 32 | 27 | 19 |
| Jul | 39 | 23 | 14 |
| Aug | 35 | 28 | 17 |
When to use
- Showing how a mix of categories changes over time.
- Emphasising shape and rhythm over exact values.
When not to use
- Readers must compare exact quantities.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/streamgraph
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
Streamgraph
7 props
PropTypeDefault
label *string—
data *readonly ChartDatum[]—
series *readonly ChartSeries[]—
unitstring""
loadingboolean—
errorstring—
classNamestring—
Keyboard
- ↑
- Moves to the previous item or value.
- ↓
- Moves to the next item or value.
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It exposes group and status semantics, with aria-label, aria-busy and aria-hidden 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/streamgraph.mdThe index of every part is at /llms.txt.