Skip to main content
100%

Multi Line Plot of Life Expectancy with respect to GDP

✓ Published0🌍 Public
Aaishwarya8615
Last edited Sep 25, 2019
Created on Sep 18, 2019

This multi-line plot visualizes life expectancy against GDP per capita over 15 years, with each line representing a year and color-coded via `d3.schemeCategory10`. It shows that higher GDP generally correlates with higher life expectancy following a logarithmic trend. The visualization is built using D3 v4 and the Metrics Graphics library, which renders the chart after parsing and nesting the data with `d3.csv` and `d3.nest`. Hovering over a line displays the corresponding year, GDP, and life expectancy. The dataset originates from WHO life expectancy data hosted on GitHub.

AI-generated description

Life 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

Observations:

  1. This is the Multi-line chart showing Life Expectancy Vs GDP (3rd sketch)
  2. This visualization was done using D3 and React
  3. Moving the mouse pointer over the line displays the Year, GDP and Life Expectancy.
  4. I forked the original template from Internet Users by World Region done by Prof. Curran as the base to draw this graph.
  5. I was unable to add the legends to the axes and also combine 5 years to draw the line. Currently working on the same.

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.

MIT Licensed

Similar vizzes