Arrow icon
See all demos

Sankey Diagram

Are you interested in learning how to create an interactive Sankey diagram using link anchors, curve connectors, and stack layout? Explore this demo (written in JavaScript) and see how easy it is to use its drag & drop user interface to create a dynamic and engaging visual representation of your data. And as a special bonus, you'll also learn how to add a watermark to your diagrams.
Demo instructions
By dragging nodes you can change their position, move elements (in this case units) and click on data flows to highlight paths. To see how to use the watermark, explore the JavaScript code.
Sankey Diagram

See the Pen JointJS+: Sankey Diagram by JointJS (@jointjs) on CodePen.

Made with JointJS+

Only available with the JointJS+ commercial license in the apps/ directory of your package. Don't have a license yet? Start a trial and use the source code of all our demos for free, with no strings attached, for 30 days.

Made with JointJS

Available in the JointJS open-source library which helps developers create simple visual applications in less time.

Speed up your development with a powerful library

Leverage a time-tested JavaScript diagramming library using the best of HTML5 and SVG to accelerate your development.