a Sankey Particles visualization of the greenhouse gas production data from @d3noob
this bl.ock forks Sankey Particles with only inline styles which in turn is an iteration on the bl.ock Sankey Particles III by @Elijah_Meeks
the #nodejs script createGraph.js
modifies sankeygreenhouse.json
from the Sankey diagram of greenhouse gas production in 2005 bl.ock to use the node indices as values for the link source
and target
properties (rather than using the node names). the result is graph.json
, a graph object in the format expected by our Sankey Particles vis
to run createGraph.js
yourself, cd
into the directory that contains this bl.ock and run these commands from the terminal:
npm i
node createGraph.js
this will install the dependencies from package.json
and then run createGraph.js
in this example some link paths occlude other link paths. Node labels that are drawn over links present further occlusion issues. I’d like to see a method to resolve this occlusion, or element-overlap. using a scale based on the number of nodes at each depth level of the graph to set the font size could help. for this example, we manually set the font-size
to 12px
.
using an interaction to only show certain links or certains sets of related links may also reduce path occlusion and improve legibility.
please do share ideas + iterations with me on twitter @micahstubbs
README.md
:Using particles to indicate flow between reservoirs in a sankey diagram. This time with particles moving at varying speeds and maintaining the color of the source node. You can drag the reservoirs (the rectangles) to adjust the path of the flows.
Other examples of sankeys with particles: