Skip to main content
100%

SANKEY Experiment

✓ Published0🌍 Public
PPragyagarg
Last edited Nov 26, 2018
Created on Nov 26, 2018

This interactive Sankey diagram visualizes the flow of "Widgets" between named sources and targets in a network. It uses d3.js version 3 and the custom `d3.sankey()` layout function, which positions nodes and computes curved link paths. External CSV data supplies the source, target, and value pairs, which are parsed into node and link objects. Users can drag nodes to rearrange the layout, triggering a relayout that updates the link paths, with hover effects increasing link opacity.

AI-generated description

This 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 csv data that is formatted using just link data and 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/c9b90689c1438f57d649'>Sankey from csv with d3.js</a>

mit Licensed

Similar vizzes