Renewable share of electricity by region
Every region moves along the same year axis, making the different starting points and rates of change easy to compare.
How it decided
Energy transition: 40 rows, 9 columns. year, region and renewable_share_pct; the generation components answer a different cut.
40 rows in, 40 out across 3 columns. Every region moves along the same year axis, making the different starting points and rates of change easy to compare.
line. A percentage over time with one line per region is a shared-axis line chart.
Palette, spacing, axis titles and legend placement applied. 0 issues found.
The transformation
This is the code, not a description of it — the chart above was drawn from what it returns, and the notebook download runs the same lines against the same file.
df["year_date"] = pd.to_datetime(df["year"].astype(str) + "-01-01"); result = df[["year_date", "region", "renewable_share_pct"]]
What it charted
40 rows out of 40, 3 columns. First 8 shown.
| year_date | region | renewable_share_pct |
|---|---|---|
| 2016-01-01 | North America | 48.6 |
| 2016-01-01 | Europe | 47.2 |
| 2016-01-01 | Asia Pacific | 44.9 |
| 2016-01-01 | Latin America | 42.3 |
| 2017-01-01 | North America | 49.5 |
| 2017-01-01 | Europe | 46.9 |
| 2017-01-01 | Asia Pacific | 44.0 |
| 2017-01-01 | Latin America | 41.9 |