I'm using the D3 plug-in to make a Sankey diagram, and would like to add labels above each column of nodes. Something like this:
Is there a function in the sankey object that can return the location of the nodes?
var sankey = d3.sankey()
.nodeWidth(15)
.nodePadding(10)
.size([width, height]);
I'm following the pattern here: http://bost.ocks.org/mike/sankey/