Skip to main content
100%

SANKEY Experiment

✓ Published0🌍 Public
Aalandunning
Last edited May 17, 2018
Created on May 16, 2018

This simple Sankey diagram demonstrates the flow of widgets between four nodes using d3.js. It loads external JSON data specifying two links, each with a value of 2, and renders them as a sankey diagram using the sankey.js plugin. The SVG visualization uses colored rectangles for nodes and curved, semi-transparent links with stroke width proportional to flow value. Nodes are interactive, supporting drag-and-drop repositioning which triggers a relayout of the diagram. The example is based on a block by d3noob and accompanies the book "D3 Tips and Tricks."

AI-generated description

This 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.

forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/c2637e28b79fb3bfea13'>Sankey diagram from formatted JSON</a>

mit Licensed

Similar vizzes