Physics — Chart: Energy Mix
A bar chart of electricity generation by source.
Rendering…
Make it your own.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Electricity generation by source",
"data": {"values": [
{"source": "Coal", "percent": 35},
{"source": "Gas", "percent": 23},
{"source": "Hydro", "percent": 16},
{"source": "Nuclear", "percent": 10},
{"source": "Wind", "percent": 8},
{"source": "Solar", "percent": 5},
{"source": "Other", "percent": 3}
]},
"mark": "bar",
"encoding": {
"x": {"field": "source", "type": "nominal", "sort": "-y", "title": "Source"},
"y": {"field": "percent", "type": "quantitative", "title": "% of generation"},
"color": {"field": "source", "type": "nominal", "legend": null}
}
}