Not quite two years ago, I published a paper with Martin Wattenberg titled “Stacked Graphs — Aesthetics and Geometry” in which we discussed the problems surrounding the use of stacked graphs, and presented a new stacked graph layout technique we called Streamgraphs. Streamgraphs had been seen before in a project I did with last.fm data called Listening History as well as in a graphic in the New York Times called Ebb and Flow at the Box Office.
I’ve finally gotten to consolidating the code used to produce the graphics for the paper, cleaning them up and adding crucial comments for better understanding. It’s presented as a processing applet, and available on github.
You can now download the source code for Streamgraphs.