Chord diagram
Flows between a handful of groups in both directions, such as plan changes or traffic between pages. Focus a group to keep only its ribbons and read them.
| From | Free | Starter | Team | Business | Churned |
|---|---|---|---|---|---|
| Free | 0 | 420 | 140 | 12 | 260 |
| Starter | 40 | 0 | 310 | 28 | 190 |
| Team | 8 | 90 | 0 | 160 | 120 |
| Business | 0 | 6 | 44 | 0 | 30 |
| Churned | 60 | 24 | 10 | 2 | 0 |
When to use
- Movement between four to eight states.
- Seeing which pairs exchange the most.
When not to use
- Flows in one direction through stages; use the Sankey.
- Many groups; the ribbons become noise.
Installation
pnpm dlx shadcn@latest add @caliper/chord-diagram
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
chordLayout
0 props
No props of its own; it accepts the native props of its root element.
ChordDiagram
8 props
Keyboard
- →
- Moves to the next item or value.
- ↓
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- ↑
- Moves to the previous 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 and aria-busy 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/chord-diagram.mdThe index of every part is at /llms.txt.