SANKEY Experiment
This example shows a small Sankey diagram with seven links connecting five nodes, visualizing the flow of "Widgets" between named sources and targets. The code builds the diagram using the d3.js v4 library, loading link data from an external CSV file and parsing it into node and link objects. The diagram renders as an SVG with draggable node rectangles and curved link paths, using d3.sankey for layout, d3.csv for data loading, and d3.drag for interactive node movement.
AI-generated descriptionThis is a sankey diagram used as an example in the book D3 Tips and Tricks v4. 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.
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/06e72deea99e7b4859841f305f63ba85'>Sankey diagram using a csv file with v4</a>