Line Diagram of World Life Expectancy with respect to GDP
This interactive line chart explores the relationship between GDP and life expectancy across countries over time, with each line representing a year and the line’s thickness encoding average BMI. The visualization leverages the Vega-Lite API to specify the marks and encodings, running on D3.js for rendering. Data is sourced from a CSV file containing World Health Organization life expectancy statistics, and color encoding uses a threshold scale to group years into four distinct intervals.
AI-generated descriptionLife Expectancy Data:
Dataset Source: Life Expectancy WHO Data uses the line plot visualization using vega lite api. This visualization plot shows the Life expectancy of people with respect to 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 Life Expectancy Vs GDP line plot(3rd sketch)
- This visualization was done using Vega Lite API
- Actual intension was to create 4 lines - one for each year interval. Unfortunately I was unable to figure out a way in which we have only 4 lineplots(One for each time interval). Hence modified the color schema to accomodate only 4 sets of years. Currently working merging the years to a line.
Analysis: From the plot we can see that the life expectancy is more when GDP is within $50000 for the latest set of data we have(2010-2015).
Note: The template was forked from Vega-Lite-API Template