A9 Life Expectancy of the World in 2015
A choropleth map of the world displays national life expectancy in 2015, with a quantized color scale shading countries from pale lavender to deep purple based on their average lifespan. The visualization loads country boundaries from a GeoJSON file and life expectancy data from a CSV using D3 v7, projecting geographic coordinates with `d3.geoMercator` and rendering paths via `d3.geoPath`. A hover interaction changes the fill color of individual countries, while the underlying data originates from the World Health Organization via Kaggle.
AI-generated descriptionData of Life Expectancy is from: https://www.kaggle.com/datasets/kumarajarshi/life-expectancy-who Json file is from:https://github.com/johan/world.geo.json/blob/master/countries.geo.json Note: Some of the countries data were missing so I had to fill in data by looking up the life expectancy of countries on Google which had information from the World Bank
Used Scott Murray's Data Viz chapter 14 for reference once again