This document provides an analysis of Life Expectancy and Human Development Data by country.
Data sources used:
World bank for Life expectancy
HDI information for HDI data and definition.
| Country | Continent | Year | HDI | Life Expectancy | Population |
|---|---|---|---|---|---|
| Afghanistan | Asia | 1990 | 0.295 | 49.86 | 12,249,114 |
| Albania | Europe | 1990 | 0.635 | 71.96 | 3,286,542 |
| Algeria | Africa | 1990 | 0.577 | 66.69 | 25,912,367 |
| Argentina | S.America | 1990 | 0.705 | 71.54 | 32,729,739 |
| Armenia | Europe | 1990 | 0.634 | 67.75 | 3,538,165 |
For the analysis and plotly visualization, We have used three different variables.
Life Expectancy (y axis)
Human Development Index (HDI) (x axis)
Population (bubble size)
Colour refers to continent and bubble size is according to Population size.
Below the graph, we have a “play” button which can be used to play the animated plotly and see the yearly trend.
When we hover over one bubble point, we can see all the information on that specific country.
We can use the legend in the right-hand-side to filter countries within a specific continent.
By default, the graph will show all countries in all continents.
If we click one continent, the font letter from that continent will turn grey which means that all countries within that continent will not display on the graph.
If we double-click one continent, we will only see the countries within that continent.
This is very useful in order to compare yearly trend among different countries.
The code for this article is publish in my github account in this file
Please feel free to reach out for any question or feedback.