Chord diagram
How groups interact. Each group is an arc on the ring, and a ribbon joins every pair that exchanges something. Hover a group to isolate its connections.
| Name | Type | What it does |
|---|---|---|
chordDiagram(data, options) | component | data: { names, matrix }, where matrix[i][j] is the flow from group i to group j |
{ size } | modifier | Option: the square drawing's size (default 480) |
{ pad } | modifier | Option: the gap between groups, in radians (default 0.05) |
{ label } | modifier | Option: a description read out by screen readers |
A ribbon is as wide at each end as that side's flow, and takes the colour of whichever side sends more. Hover highlighting from a group's arc covers the first twelve groups.
Messages between teams
<script type="module" src="node_modules/glimmer-ui/charts.js"></script>
<gl-chart type="chord" data='{"names":["Design","Engineering","Product","Sales","Support","Data"],"matrix":[[0,42,28,6,4,10],[38,0,35,5,18,26],[24,40,0,22,12,20],[4,6,30,0,25,8],[3,22,14,20,0,5],[8,30,24,10,4,0]]}' options='{"label":"Messages sent between six teams"}'></gl-chart>