Skip to main content
100%

SANKEY Experiment

✓ Published0🌍 Public
Dd3noob
Last edited Nov 26, 2019
Created on Nov 26, 2019

A Sankey diagram visualizes the flow of widgets between five nodes, with link widths proportional to the volume of each connection. The code loads data from a JSON file and uses d3.sankey(), d3.drag(), and standard SVG elements to render the network. Nodes are draggable, triggering a relayout that recalculates link paths in real time.

AI-generated description

The above example is intended to demonstrate drawing a simple Sankey diagram using v4 of d3.js. It uses Jason Davies' version of the Sankey plugin.

This is one of the code samples for the update to the book D3 Tips and Tricks to version 4 of d3.js.

forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/013054e8d7807dff76247b81b0e29030'>Sankey Diagram with v4</a>

mit Licensed

Similar vizzes