Life Expectancy Vs GDP Chart
This visualization presents a multi-line chart tracking life expectancy against GDP across several countries over a 15-year period. The chart uses color to represent different years in five-year increments, while line thickness encodes the average BMI for each data series. The code loads a WHO life expectancy CSV dataset, parses the year column, and nests the data by GDP value using `d3.nest()`. It renders the chart through the Metrics Graphics library (MG), with `MG.data_graphic()` managing the axes, legend, and series styling, while D3 v4 handles custom number formatting for the y-axis.
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 Life Expectancy Vs GDP line plot