masthead

Sankey Generator v0.2

UPDATE: Here’s the final piece. Due to a few requests for it, I will soon be releasing my code. (Caveat: it’s ugly.)

Here is the next step forward in my Sankey diagram generator. While it is still far from a finished product, it actually looks like it’s supposed to, which is quite rewarding! Quite simply, I take the point in the middle of each trunk’s Y axis, map all of those values to a larger scale (to create the fanning out effect) and draw a bezier curve from the original point to the end point.

sankeywithbranches1

The curves are looking weird in a few spots, for instance with the largest values at the top, it appears to be more of a bulge than a curve. This may just be a matter of giving the curve more room to breathe on the X axis. Eventually I will need to come up with a nicer way to display the monetary values as well.

My next task is to gather more detailed data (specific Federal grants, for example), and draw those on to the graph as well. This should prove more of a challenge, but most of that code is already written.

4 Comments so far
Leave a comment

Very cool visualization, done using flash?

This is done in processing.

[...] Sam Brenner, interactive design and development student at the Rochester Institute of Technology, has finished version 0.2 of his ‘Sankey Generator’ tool. [...]

[...] version 0.2 looked exactly how I wanted to, it didn’t work exactly how I wanted it to. It ran through the [...]



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)