Skip to content

This repository includes the data wrangling about the Global Inequality dataviz project using vanilla js and the library arquero.js

Notifications You must be signed in to change notification settings

sandravizz/Global-Inequality-Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global inequality

This is a data driven project about global inequality.

Please find the introduction repository here and the visual story repository here

Please find the EDA that uses the output data files from this repository in this notebook and this notebook.

The project is split into two Github repository. This one is called "Global inequality" is used for data loading and warngling. The output is the input for the second one repository called gini, which is used for the web-page and visualisations unsing svelte, layercake and d3.js.

Background

Something isn't going well in current, modern, western societies. I feel it, my friends feel it, people around us and in the world are struggeling. More and more do we hear about our democracies failing, our communities splitting and inequalities rising.

In order to invesitgate about this preceived development Patrick and I decided to have a deeper and as it turns out a very deep look at data about global inequality.

Data

The data on economic inequality was sourced from the World Inequality Database (WID)

We use mainyly the js library arquero to load, join and transform data. The objective of this project is to investigate the reasons and consequences of a rising global inequality.

Loading.js

In these scripts all individual country files are loaded in order to combine them with the option to select different timeframes as well as variables.

Loading.js is focusing on the gini and corresponding variables, as well as analysing the differences pre and post taxes. The correponding code can be found here and the final data here. Loading2.js is focusing on income shares by population percentile, in particular the top 10% vs. the buttom 50%. The correponding code can be found here and the final data here

Join.js

In this script I join the complete file (output from the two loading scripts) in order to join it with WID_countries.csv to add importat information about the countries. The correponding code files can be found here and here and here the final data here and here.

Wrangeling.js

In this script I do the necessaries steps to create the final dataset including only the variables I need in this case for the starting and end date 1980 vs 2022. The correponding code files can be found here and here and here the final data here and here.


Made with 💚 by Sandraviz

I am available for freelance data visualization work. Please contact me in case you would like me to help you with my experience and expertise or connect with me.

Credits to Patrick and Austin for help.

About

This repository includes the data wrangling about the Global Inequality dataviz project using vanilla js and the library arquero.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published