Sankey Diagrams

Nuclear → Thermal generation 840 TWhThermal generation → Losses 787 TWhOil → Liquid 612 TWhThermal generation → Electricity grid 526 TWhOil imports → Oil 504 TWhSolid → Thermal generation 400 TWhElectricity grid → Industry 342 TWhWind → Electricity grid 289 TWhBio-conversion → Solid 280 TWhLiquid → International aviation 206 TWhPumped heat → Heating and cooling - homes 193 TWhUK land based bioenergy → Bio-conversion 182 TWhGas → Thermal generation 152 TWhLiquid → Road transport 136 TWhLiquid → International shipping 129 TWhAgricultural 'waste' → Bio-conversion 125 TWhNgas → Gas 123 TWhLiquid → Industry 121 TWhElectricity grid → Heating and cooling - homes 114 TWhOil reserves → Oil 108 TWhElectricity grid → Over generation / exports 104 TWhElectricity grid → Lighting & appliances - homes 93 TWhElectricity grid → Lighting & appliances - commercial 90 TWhGas reserves → Ngas 82 TWhBio-conversion → Gas 81 TWhThermal generation → District heating 79 TWhOther waste → Bio-conversion 78 TWhCoal → Solid 76 TWhPumped heat → Heating and cooling - commercial 71 TWhCoal reserves → Coal 64 TWhSolar PV → Electricity grid 60 TWhSolar → Solar PV 60 TWhElectricity grid → Losses 57 TWhOther waste → Solid 57 TWhGas → Industry 49 TWhSolid → Industry 46 TWhDistrict heating → Heating and cooling - homes 46 TWhElectricity grid → Heating and cooling - commercial 41 TWhGas imports → Ngas 41 TWhElectricity grid → Road transport 38 TWhBiofuel imports → Liquid 35 TWhBiomass imports → Solid 35 TWhLiquid → National navigation 33 TWhElectricity grid → H2 conversion 27 TWhBio-conversion → Losses 27 TWhDistrict heating → Heating and cooling - commercial 23 TWhH2 conversion → H2 21 TWhH2 → Road transport 21 TWhSolar Thermal → Heating and cooling - homes 19 TWhSolar → Solar Thermal 19 TWhWave → Electricity grid 19 TWhLiquid → Domestic aviation 14 TWhCoal imports → Coal 12 TWhDistrict heating → Industry 11 TWhTidal → Electricity grid 9 TWhElectricity grid → Rail transport 8 TWhGeothermal → Electricity grid 7 TWhHydro → Electricity grid 7 TWhH2 conversion → Losses 6 TWhLiquid → Rail transport 4 TWhElectricity grid → Agriculture 4 TWhMarine algae → Bio-conversion 4 TWhLiquid → Agriculture 4 TWhGas → Agriculture 2 TWhGas → Losses 1 TWhSolid → Agriculture 1 TWhBio-conversion → Liquid 1 TWhGas → Heating and cooling - commercial 0 TWhAgricultural 'waste' 125 TWhAgricultural 'waste'Bio-conversion 389 TWhBio-conversionLiquid 648 TWhLiquidLosses 878 TWhLossesSolid 447 TWhSolidGas 204 TWhGasBiofuel imports 35 TWhBiofuel importsBiomass imports 35 TWhBiomass importsCoal imports 12 TWhCoal importsCoal 76 TWhCoalCoal reserves 64 TWhCoal reservesDistrict heating 79 TWhDistrict heatingIndustry 569 TWhIndustryHeating and cooling - commercial 134 TWhHeating and cooling - commercialHeating and cooling - homes 372 TWhHeating and cooling - homesElectricity grid 919 TWhElectricity gridOver generation / exports 104 TWhOver generation / exportsH2 conversion 27 TWhH2 conversionRoad transport 195 TWhRoad transportAgriculture 11 TWhAgricultureRail transport 12 TWhRail transportLighting & appliances - commercial 90 TWhLighting & appliances - commercialLighting & appliances - homes 93 TWhLighting & appliances - homesGas imports 41 TWhGas importsNgas 123 TWhNgasGas reserves 82 TWhGas reservesThermal generation 1,392 TWhThermal generationGeothermal 7 TWhGeothermalH2 21 TWhH2Hydro 7 TWhHydroInternational shipping 129 TWhInternational shippingDomestic aviation 14 TWhDomestic aviationInternational aviation 206 TWhInternational aviationNational navigation 33 TWhNational navigationMarine algae 4 TWhMarine algaeNuclear 840 TWhNuclearOil imports 504 TWhOil importsOil 612 TWhOilOil reserves 108 TWhOil reservesOther waste 134 TWhOther wastePumped heat 264 TWhPumped heatSolar PV 60 TWhSolar PVSolar Thermal 19 TWhSolar ThermalSolar 79 TWhSolarTidal 9 TWhTidalUK land based bioenergy 182 TWhUK land based bioenergyWave 19 TWhWaveWind 289 TWhWind

Source: Department of Energy & Climate Change, Tom Counsell.

Sankey diagrams visualize the magnitude of flow between nodes in a network. This intricate diagram shows a possible scenario for UK energy production and consumption in 2050: energy supplies are on the left, and demands are on the right. Intermediate nodes group related forms of production and show how energy is converted and transmitted before it is consumed (or lost!). The thickness of each link encodes the amount of flow from source to target.

This example is built with D3’s Sankey plugin. The plugin takes as input the nodes and weighted links, computing positions via iterative relaxation. After fixing the horizontal position of each node, the algorithm starts from the sources on the left, positioning downstream nodes so as to minimize link distance. A reverse pass is then made from right-to-left, and then the entire process is repeated several times. Overlapping nodes are shifted to avoid collision.

The fully automatic layout is convenient for rapid visualization—positioning nodes manually is tedious! However, the algorithm is not perfect; links are drawn with partial transparency to highlight crossings. To improve readability and further disambiguate links, this example also lets you reposition nodes interactively. The algorithm could be improved in the future, say to minimize link crossing or to support loopback in cyclical networks.

Many thanks to Tom Counsell, whose Sankey library provided inspiration for this example.