SANKEY Experiment
This example shows a small data flow between named entities (Barry, Frodo, Elvis, Sarah, Alice) as a sankey diagram, with colored, draggable nodes and curved links whose widths scale with link values. It loads external CSV data, processes it into nodes and links, then uses the custom `d3.sankey` layout and `sankey.link()` path generator to render the SVG. Colors come from `d3.scaleOrdinal` with `d3.schemeCategory10`, and interactive dragging triggers `sankey.relayout()` to update paths.
AI-generated descriptionThis is a sankey diagram used as an example in the book D3 Tips and Tricks v5. 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.