Bump chart
Rank changes of several series across periods.
| Period | Atlas rank | Harbour rank | Wayfinder rank |
|---|---|---|---|
| Q1 | 1 | 2 | 3 |
| Q2 | 2 | 1 | 3 |
| Q3 | 1 | 2 | 3 |
| Q4 | 1 | 3 | 2 |
When to use
- Leaderboards and market share over time.
- Showing order, not magnitude.
When not to use
- Values matter more than rank.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/bump-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
BumpChart
8 props
PropTypeDefault
label *string—
periods *readonly string[]—
data *readonly BumpSeries[]—
unitstring""
formatValue((value: number) => string)numberText
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, aria-hidden and aria-pressed 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/bump-chart.mdThe index of every part is at /llms.txt.