Electricity generation by source
Electricity generation by source, stacked by value, with the total above each bar.
Electricity generation by source
examples/energy-mix.json{
"schemaVersion": 1,
"type": "bar",
"stack": "normal",
"title": "Electricity generation by source",
"source": "Sample data",
"valueAxis": {
"title": "TWh"
},
"categories": [
"2019",
"2020",
"2021",
"2022",
"2023"
],
"series": [
{
"name": "Wind",
"values": [
126,
132,
114,
125,
139
]
},
{
"name": "Solar",
"values": [
46,
50,
49,
60,
62
]
},
{
"name": "Gas",
"values": [
90,
95,
89,
79,
76
]
},
{
"name": "Coal",
"values": [
171,
134,
163,
181,
130
]
}
]
}Source: Sample data
Show chart data
| Category | Wind | Solar | Gas | Coal |
|---|---|---|---|---|
| 2019 | 126 | 46 | 90 | 171 |
| 2020 | 132 | 50 | 95 | 134 |
| 2021 | 114 | 49 | 89 | 163 |
| 2022 | 125 | 60 | 79 | 181 |
| 2023 | 139 | 62 | 76 | 130 |