PAD Charts
All charts/Sankey

Where energy goes

Sources, conversion and use - each band as wide as its flow.

1 The data _data/flows.json json
[
  { "from": "Coal",        "to": "Electricity", "twh": 40 },
  { "from": "Gas",         "to": "Electricity", "twh": 55 },
  { "from": "Gas",         "to": "Heat",        "twh": 35 },
  { "from": "Wind",        "to": "Electricity", "twh": 30 },
  { "from": "Solar",       "to": "Electricity", "twh": 15 },
  { "from": "Oil",         "to": "Transport",   "twh": 60 },
  { "from": "Electricity", "to": "Homes",       "twh": 45 },
  { "from": "Electricity", "to": "Industry",    "twh": 55 },
  { "from": "Electricity", "to": "Losses",      "twh": 40 },
  { "from": "Heat",        "to": "Homes",       "twh": 25 },
  { "from": "Heat",        "to": "Industry",    "twh": 10 },
  { "from": "Transport",   "to": "Losses",      "twh": 38 },
  { "from": "Transport",   "to": "Services",    "twh": 22 }
]
2 The chart tag sankey/energy.pad pad
{chart 'sankey', data='flows', source='from', target='to', value='twh', title='Energy from source to use', width=640, height=400}
3 The result inline SVG · no JavaScript
Energy from source to use Coal → Electricity: 40; Gas → Electricity: 55; Gas → Heat: 35; Wind → Electricity: 30; Solar → Electricity: 15; Oil → Transport: 60; Electricity → Homes: 45; Electricity → Industry: 55; Electricity → Losses: 40; Heat → Homes: 25; Heat → Industry: 10; Transport → Losses: 38; Transport → Services: 22 Coal → Electricity: 40 Heat → Homes: 25 Heat → Industry: 10 Gas → Electricity: 55 Gas → Heat: 35 Electricity → Homes: 45 Electricity → Industry: 55 Electricity → Losses: 40 Wind → Electricity: 30 Solar → Electricity: 15 Transport → Losses: 38 Transport → Services: 22 Oil → Transport: 60 Coal: 40 Coal Electricity: 140 Electricity Gas: 90 Gas Heat: 35 Heat Wind: 30 Wind Solar: 15 Solar Oil: 60 Oil Transport: 60 Transport Homes: 70 Homes Industry: 65 Industry Losses: 78 Losses Services: 22 Services