Skip to main content
100%

A9 Life Expectancy of the World in 2015

✓ Published0🌍 Public
AAllen Jake Polintan
Last edited Apr 1, 2024
Created on Mar 31, 2024
Forked from HTML Starter

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 description

Data 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

MIT Licensed

Similar vizzes