I want to draw a Sankey diagram using Javascript. Can anyone provide some direction regarding the algorithms or libraries that are available for this?
D3.js uses a plugin to create sankey diagrams pretty well.
http://bost.ocks.org/mike/sankey/