SANKEY Experiment
This sankey diagram visualizes the flow of widgets between seven nodes, with link thickness proportional to the value of each connection. The diagram uses d3.js v3 with SVG rendering, loading JSON data that defines nodes and links by name. The code leverages the custom `d3.sankey` API to compute node positions and link paths, with interactive node dragging that triggers relayout. Node and link titles display labels and values on hover, while the color scheme uses `d3.scale.category20()` to differentiate node groups.
AI-generated descriptionThis is a sankey diagram used as an example in the book D3 Tips and Tricks. It is based on a simpler version here.
It demonstrates the construction of a sankey diagram using d3.js from external JSON data that is formatted with node and link data using named values. It should be taken in context with the text of the book which can be downloaded for free from Leanpub.
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/9bd82617061e04ad9540'>Sankey diagram using names in JSON</a>