Health and Wealth from Scratch
This animated scatterplot recreates the classic "Health and Wealth" visualization, showing how national income per capita, life expectancy, and population have evolved over time. Using D3 v4 with SVG, the chart plots countries as circles, with income on a logarithmic x-axis, life expectancy on a linear y-axis, and population mapped to circle radius via a square-root scale. The animation advances year by year from 1950 to 1955, with circles transitioning smoothly between positions as data updates. Axes are drawn for both income and life expectancy, and the dataset is loaded from an external JSON file containing historical records for each country. The visualization highlights the relationship between wealth and health across nations during a brief historical window.
AI-generated descriptionBuilt with blockbuilder.org