Skip to main content
100%

SANKEY Experiment

✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Jun 25, 2014

This example shows a sankey diagram built with D3.js, using external CSV data that specifies named source and target links with numeric values. The chart visualizes the flow of "Widgets" between named nodes, with the width of each link proportional to its value, and supports interactive node dragging. The code uses d3.sankey for layout, d3.csv for data loading, d3.behavior.drag for node movement, and renders the diagram as SVG with semi-transparent black link paths and colored node rectangles.

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.

mit Licensed

Similar vizzes