Small but Beautiful
DATE
TYPE
This piece of visualization work is a submission for World Data Visualization Prize hold by World Government Summit. This prize in the year of 2019, in partnership with Information is Beautiful, focuses on how governments are improving citizens' lives, and the innovations - seen and unseen - that drive and measure success in this REALM. This could cover the environment, happiness, employment, technology, agriculture or any other area of government support.
Brief
Smaller? Better? More Productive?
Nations vary in shapes and sizes, but all of them tell compelling stories. What interesting trends and discoveries can you reveal about various countries around the world?
Result
The model shows the pattern of overall performance of small countries in different continents, by categorizing various indicators under five topics: civil life, economics situation, government performance, law system and migration. See the code and steps here
Process
Code
The dataset given is Excel and all the work is done in Python. We used sklearn and pandas for data processing. For visualization, we use seaborn, plotly and matplotlib. The code is tested in jupyter notebook.
See step-by-step code here.
https://nbviewer.jupyter.org/github/Prudenceyyx/WDVP/blob/master/WDVP_prst.ipynb
Data cleaning
See the link for details. In short, it turned out that normalization (linearly from 0 to 1) isn't good for a dataset like this for too many outliers. We switch to standarization
Kick off
To get a big picture of the dataset, we first visualize the correlation between each pair of indice in a heapmap.
Polar chart
Polar chart is what we decide to do. All the data features are rescaled to meet standrad distribution, where the mean is 0 and the standard deviation is 1. Accordingly, score 0 represents the median. Scores from -3 to 3 represents 75% of all data. Therefore, a score higher than 3 suggests that a country achieves better than 75% of the small countirein the corresponding category.
With all scores of one country marked on the polar chart, a spline line chaines them together. The line's smoothness turns out to reflect a country's balance among all indicators.
In previous trial and error, we have the viz same color. The result turned out hard to tell part as following.
Beautify
It's hard to tell the difference between continents and between categories. We apply a color to each area, the visualization transforms to the below.
In order to make it look clear, we omit all the legends in the final entry. Take one continent as example.
Here is an overview of all 5 continents.
