chartletv0.21.0chartlet.casoon.de

← All examples

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
      ]
    }
  ]
}
Electricity generation by source
Electricity generation by sourceBar chart with 5 categories and 4 series (Wind, Solar, Gas, Coal). Highest: 181 (Coal in 2022). Lowest: 46 (Solar in 2019). The series are stacked. Highest total: 445 (2022). Lowest total: 407 (2023).0100200300400500TWhWindSolarGasCoal2019 – Wind: 1261262019 – Solar: 46462019 – Gas: 90902019 – Coal: 17117143320192020 – Wind: 1321322020 – Solar: 50502020 – Gas: 95952020 – Coal: 13413441120202021 – Wind: 1141142021 – Solar: 49492021 – Gas: 89892021 – Coal: 16316341520212022 – Wind: 1251252022 – Solar: 60602022 – Gas: 79792022 – Coal: 18118144520222023 – Wind: 1391392023 – Solar: 62622023 – Gas: 76762023 – Coal: 1301304072023

Source: Sample data

Show chart data
Data for Electricity generation by source
CategoryWindSolarGasCoal
20191264690171
20201325095134
20211144989163
20221256079181
20231396276130
  • Bar (stacked)
  • Show a total and its parts