SANKEY Experiment
This example shows a sankey diagram built with D3 v7 and the d3-sankey module, using SVG rendering. It loads link data from an external CSV file, where each row defines a source, target, and value, then converts text labels into numeric node indices for the layout. The visualization displays named nodes and flowing links with widths proportional to values, using `d3.sankey()` and `d3.sankeyLinkHorizontal()` for positioning. Node colors come from a categorical scale, and hover effects adjust link opacity.
AI-generated descriptionThis is a sankey diagram used as an example in the book D3 Tips and Tricks v7. It is based on a simpler version here.
It demonstrates the construction of a sankey diagram using d3.js from external csv data that is formatted using just link data and named values.