Line Plot of Life Expectancy Data_GDPVsLifeExpectancy
This line plot shows life expectancy versus GDP per capita across multiple years, with each line representing a year colored by a category scale and line thickness reflecting average BMI. The visualization reveals a logarithmic relationship where higher GDP correlates with increased life expectancy, though gains diminish at higher income levels. Built with D3 v4 and Metrics-Graphics, it loads CSV data from a GitHub gist and nests rows by year to generate separate series. Hovering over a line displays the exact year, GDP, and life expectancy values through the chart’s interactive tooltip.
AI-generated descriptionLife Expectancy Data:
Dataset Source: Life Expectancy WHO Data uses the scatter plot visualization using D3 and vega lite api. This visualization plot shows the Life expectancy of people in various parts of the world over a period of 15 years.
The colors represent the Year in increments of 5. Thickness of line depends on the average BMI.
Observations:
- This is the The Multi-line chart showing Life Expectancy Vs GDP line plot(3rd sketch)
- This visualization was done using D3 and React
- Moving the mouse pointer over the line displays the Year, GDP and Life Expectancy.
- I forked the original template on Internet Users by World Region done by Prof. Curran as the base to draw this graph.
Analysis: This graph displays the correlation between life expectancy and gross domestic product (GDP) per capita. In general, countries with higher GDP have a higher life expectancy. The relationship seems to follow a logarithmic trend: the unit increase in life expectancy per unit increase in GDP decreases as GDP per capita increases.