twoHelixestwoHelixes Start free

Datasets / Energy transition

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.

Question line chart of renewable share by year and region
Renewable share by region01020304050Jan 16Jan 17Jan 18Jan 19Jan 20Jan 21Jan 22Jan 23Jan 24Jan 25Year DateNorth AmericaEuropeAsia PacificLatin America
Energy transition — 40 rows charted from 40, drawn as a line
How it decided
Finding the data856 ms

Energy transition: 40 rows, 9 columns. year, region and renewable_share_pct; the generation components answer a different cut.

Shaping the data5 ms

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.

Choosing the chart9 ms

line. A percentage over time with one line per region is a shared-axis line chart.

Applying defaults1 ms

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_dateregionrenewable_share_pct
2016-01-01North America48.6
2016-01-01Europe47.2
2016-01-01Asia Pacific44.9
2016-01-01Latin America42.3
2017-01-01North America49.5
2017-01-01Europe46.9
2017-01-01Asia Pacific44.0
2017-01-01Latin America41.9