Skip to main content
100%

SANKEY Experiment

✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Feb 22, 2013

This interactive Sankey diagram visualizes global greenhouse gas emissions for 2005, sourced from the World Resources Institute, by showing the flow of emissions from energy, industrial processes, agriculture, and land-use change to specific gases like carbon dioxide, methane, and nitrous oxide. Built with the `d3.sankey()` plugin, it uses draggable, colored nodes and curved, semi-transparent links with hover titles to display quantities. The code customizes node width, padding, and layout iterations, and implements custom drag behavior via `d3.behavior.drag()` to reposition nodes and trigger `relayout()` for dynamic link updates.

AI-generated description

This is an example of a Sankey diagram made using d3.js and the sankey plugin.

A description of how it was put together and techniques for implimenting Sankey diagrams in general with d3.js can be found at d3noob.org or you can download the full text in the D3 Tips and Tricks book (for free) from Leanpub.

The data is sourced from the World Resources Institute (http://www.wri.org/chart/world-greenhouse-gas-emissions-2005). Open in full window for full effect.

mit Licensed

Similar vizzes