Skip to main content
100%

SANKEY Experiment

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

This Sankey diagram visualizes world greenhouse gas emissions from 2005, using data from the World Resources Institute. It displays energy sources, end-use sectors, and resulting gases as nodes, with link widths representing emission quantities. Unlike typical Sankey diagrams, users can drag nodes both horizontally and vertically, with `d3.behavior.drag` triggering `sankey.relayout()` to recompute link paths in real time. The visualization is rendered as SVG using D3.js 3.5.17 and a custom `d3.sankey` plugin, with node colors assigned via `d3.scale.category20()`.

AI-generated description

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

It has a point of differenc from other Sankey diagrams I have seen in that the nodes can be moved horizontally and vertically.

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