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}