The gender income gap, squared
November 14th, 2024
3 min
Datawrapper lets you show your data as beautiful charts, maps or tables with a few clicks. Find out more about all the available visualization types.
Our mission is to help everyone communicate with data - from newsrooms to global enterprises, non-profits or public service.
We want to enable everyone to create beautiful charts, maps, and tables. New to data visualization? Or do you have specific questions about us? You'll find all the answers here.
Data vis best practices, news, and examples
250+ articles that explain how to use Datawrapper
Answers to common questions
An exchange place for Datawrapper visualizations
Attend and watch how to use Datawrapper best
Learn about available positions on our team
Our latest small and big improvements
Build your integration with Datawrapper's API
Get in touch with us – we're happy to help
This article is brought to you by Datawrapper, a data visualization tool for creating charts, maps, and tables. Learn more.
Edit: Hans has updated this chart with the latest IPCC report data from 2021. You can find and reuse versions using a mean emissions scenario and a high emissions scenario in the River.
This is Hans, a software engineer at Datawrapper. For this week’s edition of the Weekly Chart, I tried to find a personal approach to global temperature increase.
When looking at charts about the increase in global temperature, I sometimes find myself asking: What exactly does that mean for people living now — especially younger generations? These charts often have all the data laid out, but the direct personal relevance is sometimes hard to grasp. Here is my approach:
Using the average life expectancy for German citizens in 2017/2019, I calculated the average remaining life expectancy for each age group. Unfortunately, I couldn't find a similar data source for the whole world. The statistical projection for future warming is based on this Guardian article from 2017, which in turn is based on a paper by Raftery et al. from 2017. I chose to use the average of projections, which depicts the most likely scenario.
This chart is heavily inspired by our CTO Gregor's Weekly Chart from two years ago, and uses the same data. Head there if you want to read up on what global temperature increase is and how it affects our future.
The chart above looks like a bar chart — but to create it, I used a Datawrapper scatter plot. It offers the greatest flexibility of all Datawrapper chart types. I mostly used features from the Annotate tab, such as annotation, highlight ranges, and custom lines. To calculate the horizontal “bars,” I wrote a tiny script that you can run in the console of your browser. I then pasted the results in the textfield of our “custom lines and areas” feature.
const years = [2098,2088,2078,2068,2059,2049,2041,2034,2027,2024];
const age = [9,19,29,39,49,59,69,79,89,99];
let text ='';
for (let i = years.length - 1; i >= 0; i--) {text += `2021.2 + ${age[i]} + ${years[i] - 0.2} + ${age[i]} + @width:10px @color:#fff \n`;}
console.log(text);
That’s it for this week! As always, feel free to hover over the chart itself and click on the “Edit this chart” button in the upper right to play around with the chart settings or to use this chart yourself. We'll see you next week with a chart by our support engineer Eddie.
Comments