Blog / Sankey

    What is a Sankey chart, and when should you use one?

    A Sankey chart shows how an amount flows from source to target. Where it helps, how the data should look and how to make one.

    Updated , 5 min read

    A Sankey chart, also called a Sankey diagram, shows how an amount moves between steps. The width of each band is proportional to the amount, so the largest flow is visible before anyone reads a number. It answers two questions: where does it come from, and where does it go?

    Gas power mostly ends up in industry
    Coal 20Electricity 90Gas 45Solar 25Homes 35Industry 55

    The diagram is named after Captain Matthew Sankey, who used it in 1898 to show the energy losses of a steam engine.

    Where Sankey charts are used

    FieldWhat flows
    EnergyFrom sources through conversion to use and loss
    FinanceFrom revenue to costs and profit, or from a budget to departments
    Product and webVisitors from page to page
    Supply chainMaterial from supplier to customer
    Sales and hiringLeads or applicants from stage to stage

    How the data should look

    One row per flow, with three columns: source, target and value. A name that is a target in one row and a source in another becomes a middle step.

    sourcetargetvalue
    CoalElectricity20
    GasElectricity45
    ElectricityIndustry55

    How to make one

    1. Attach the CSV or Excel file.
    2. Ask for a Sankey diagram, for example "Show the energy flows".
    3. Color the nodes or highlight the path that carries the message.
    4. Export as PNG, JPG, PDF or SVG.

    The Sankey diagram maker page has an example and sample data. Excel has no Sankey chart type: three ways around that.

    When not to use one

    • You only compare totals. A bar chart is easier to read.
    • The flow loops back. A Sankey chart runs in one direction.
    • You have more than about 15 nodes. Group the small ones first.