# Chord

> Use a chord diagram to show flows between a handful of groups in both directions, around a circle.

- Data type: Movement between stages (`flow`)
- Free (MIT): install with `npx chartreuse add chord`, or registry item `/r/chord.json`
- Example: **A third of Nobel laureates working in the US were born abroad** (Nobel laureates in the sciences and economics, by country of birth and of affiliation when awarded, 1901–2026)
- How to read it: Each ribbon leaves the group where laureates were born and points at the group where they worked when they won; loops back to the same group mean they stayed.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 9:16)

## Use it when
- flows go both ways between 3 to 8 groups
- who gains and who loses matters more than exact amounts
- each group is both a source and a destination

## Avoid it when
- the flow has stages (use a Sankey)
- readers must compare small ribbons precisely (use a matrix)
- there are more than about 8 groups

## Fields (data.json)
- `groups` (category): the six country groups, in ink order
- `matrix` (number, unit "laureates", format count): matrix[i][j]: laureates born in group i and affiliated with group j when awarded
- `laureates` (number, unit "laureates", format count): laureates counted
- `years` (year): first and last award year in the data

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a ribbon to read a flow and its reverse
- hover an arc to light that group's flows
- Motion: The arcs grow into the ring, then the ribbons fade in group by group.
- Sound: A pop pitched by birth group on hover. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "chord",
  "title": "A third of Nobel laureates working in the US were born abroad",
  "subtitle": "Nobel laureates in the sciences and economics, by country of birth and of affiliation when awarded, 1901–2026",
  "data": "/charts/chord.data.json"
}
```

## Source
Nobel Prize laureates (API v2.1), Nobel Prize Outreach (CC0 1.0), retrieved 2026-12-01: https://api.nobelprize.org/2.1/laureates

Note: Countries use today's borders. Laureates with no affiliation (most Peace and Literature prizes) are left out; each laureate counts once, at their first affiliated prize.

Live: /charts/chord · Manifest: /charts/chord.json · Tags: migration, flows, network, circle, Nobel prize, science, brain drain
