Skip to content
caliper ui pro docs

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.

Pro
Plan changes this quarter
FreeStarterTeamBusinessChurned

Plan changes this quarter, from row to column
FromFreeStarterTeamBusinessChurned
Free042014012260
Starter40031028190
Team8900160120
Business0644030
Churned60241020

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

terminal
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
PropTypeDefaultDescription
label *string—
groups *readonly ChartSeries[]—
matrix *readonly (readonly number[])[]—matrix[i][j] is the flow from group i to group j.
unitstring""
formatValue((value: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—

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

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

More in Advanced charts