The Sankeycomponent 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
Chart data defining nodes and links.
Optional formatter for values.
'horizontal'Control sankey layout direction.
'center'Node alignment method.
'auto'Node sorting method.
Chart width.
Chart height.
Chart margin.
Define style for common elements such as labels, axes…
Define chart's colors.
12Node thickness.
0.75Node opacity (0~1).
1Node opacity on hover (0~1).
0.15Other nodes opacity on hover (0~1).
12Spacing between nodes at an identical level.
0Node inner padding, distance from link, substracted from nodeThickness.
1Node border width.
Method to compute node border color.
0Node border radius.
0.25Link opacity (0~1).
0.6Link opacity on hover(0~1).
0.15Other links opacity on hover (0~1).
0Contract link width.
falseEnable/disable gradient from source/target nodes instead of plain color.
trueEnable/disable labels.
'inside'Label position.
9Label padding from node.
Method to compute label text color.
'horizontal'Label orientation.
trueEnable/disable interactivity.
Tooltip custom component for nodes.
Tooltip custom component for links.
onClick handler, it receives target node or link data and mouse event.
trueEnable/disable transitions.
'gentle'Motion config for react-spring, either a preset or a custom configuration.