The Chord
component is available in the nivo
HTTP rendering API.
The API generates a SVG and return a path to this SVG
which can then be easily embedded.
The api accepts almost the same properties as the regular component, in json, however it's not interactive and you cannot use code in properties (functions).
Please note that the demo API server is installed on heroku using a free plan, so it might be unavailable from times to times.
no response available
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.
0
Padding angle.
0.9
Inner radius ratio.
0
Inner radius offset (minus innerRadiusRatio).
Define style for common elements such as labels, axes…
Defines how to compute arcs & ribbons color.
1
Arcs opacity.
1
Arcs border width.
Arcs border color.
0.5
Ribbons opacity.
1
Ribbons border width.
Ribbons border color.
true
Enable/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.
12
Label offset from arc.
0
Label rotation.
Method to compute label text color.
'ribbons'
, 'arcs'
, 'labels'
, 'legends'
]Defines the order of layers and add custom layers.
true
Enable/disable interactivity.
1
Arc opacity when active.
0.15
Arc opacity when inactive.
0.85
Ribbon opacity when active.
0.15
Ribbon 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.
true
Enable/disable transitions.
'gentle'
Motion config for react-spring, either a preset or a custom configuration.