SANKEY Experiment
A Sankey diagram displays the flow of "Widgets" between five nodes, with links showing the directed transfer values. Built with D3.js version 3.5 and the sankey.js plugin, the SVG visualization renders nodes as draggable rectangles and links as curved paths whose thickness encodes flow magnitude. Data loads from an external JSON file, and the chart supports interactive node repositioning, which triggers recalculation of link paths through the sankey.relayout() method. Node and link hover tooltips reveal names and formatted values.
AI-generated descriptionThis is a simple sankey diagram used as an example in the book D3 Tips and Tricks.
It demonstrates the construction of a sankey diagram using d3.js from external JSON data using the sankey.js plugin. It should be taken in context with the text of the book which can be downloaded for free from Leanpub.