Run your Python code to see output here
Sankey diagrams are specialized flow diagrams where the width of arrows is proportional to the flow quantity, making them perfect for visualizing energy flows, material transfers, cost distributions, and any process where quantities move between different stages. Named after Irish Captain Matthew Henry Phineas Riall Sankey who first used this diagram type in 1898 to illustrate the energy efficiency of a steam engine, Sankey charts have become an indispensable tool in engineering, environmental science, economics, and data analytics. The visual representation instantly reveals dominant flows, losses, and distribution patterns that would be difficult to grasp from raw data alone.
This online Sankey chart tool uses Python's Matplotlib library, specifically importing the Sankey class from matplotlib.sankey module. Unlike general Matplotlib plotting, this is a dedicated tool focused entirely on building professional Sankey diagrams with Python. It runs completely in your browser using Pyodide WebAssembly technology—no installation, no setup, completely free. You get the full power of Python's Sankey visualization capabilities with support for multi-stage flows, custom colors, labels, orientations, and formatting options to build publication-quality diagrams for presentations, reports, academic papers, and business analytics.
Whether you're an energy analyst visualizing power generation and distribution, an environmental scientist tracking material flows in ecosystems, a business analyst showing budget allocations, a supply chain manager mapping logistics flows, or a student learning about process visualization, this free online Python Sankey tool makes it easy to create beautiful and informative flow diagrams. With our comprehensive example gallery featuring energy networks, manufacturing processes, budget breakdowns, water treatment flows, and website traffic patterns, you can quickly learn and adapt Sankey diagram patterns to your specific needs. Create professional Sankey charts online, free, with the flexibility of Python code!
Specialized Online Python compiler powered by Pyodide WebAssembly. Run Python Library directly in your browser with zero setup.