Chord diagram, uses d3-chord, see this demo.
The responsive alternative of this component is ResponsiveChord.
This component is available in the @nivo/api,
see sample or
try it using the API client.
See the dedicated guide on how to setup legends for this component.
The matrix used to compute the chord diagram.
Keys used to identify each cell in the matrix.
Optional value formatter.
Chart width.
Chart height.
'Depends on device'Adjust pixel ratio, useful for HiDPI screens.
Chart margin.
0Padding angle.
0.9Inner radius ratio.
0Inner radius offset (minus innerRadiusRatio).
Define style for common elements such as labels, axes…
Defines how to compute arcs & ribbons color.
1Arcs opacity.
1Arcs border width.
Arcs border color.
'normal'Define CSS mix-blend-mode for ribbons.
0.5Ribbons opacity.
1Ribbons border width.
Ribbons border color.
trueEnable/disable labels.
'id'Defines how to get label text, can be a string (used to access current arc data property) or a function which will receive the actual arc data.
12Label offset from arc.
0Label rotation.
Method to compute label text color.
'ribbons', 'arcs', 'labels', 'legends']Defines the order of layers and add custom layers.
trueEnable/disable interactivity.
1Arc opacity when active.
0.15Arc opacity when inactive.
0.85Ribbon opacity when active.
0.15Ribbon opacity when inactive.
onMouseEnter handler for arcs.
onMouseMove handler for arcs.
onMouseLeave handler for arcs.
onClick handler for arcs.
Custom arc tooltip component.
onMouseEnter handler for ribbons.
onMouseMove handler for ribbons.
onMouseLeave handler for ribbons.
onClick handler for ribbons.
Custom ribbon tooltip component.
Optional chart's legends.
Defines legend anchor relative to chart's viewport.
Legend direction, must be one of 'column', 'row'.
Justify symbol and label.
Legend block x translation.
Legend block y translation.
Legend item width.
Legend item height.
Spacing between each item.
Item symbol size.
Item layout direction.
trueEnable/disable transitions.
'gentle'Motion config for react-spring, either a preset or a custom configuration.