Sankey
Sankey chart component rendered with Apache ECharts
Sankey chart component rendered with Apache ECharts
The data prop holds nodes and links that point at nodes by index; duplicate names, missing nodes, negative values and cycles show a message instead of a broken diagram. nodeWidth, nodePadding, linkCurvature, iterations and align shape the layout, and Link colours each band by gradient, solid, source or target.
NodeLabel puts names inside or beside the nodes, with formatted totals if wanted. Clicking a node with isClickable keeps it and its direct neighbours in colour and dims the rest.