Skip to main content
100%

HDI Over Time Scatter Final

✓ Published1🌍 Public
SSpencer McAvey
Last edited Mar 5, 2023
Created on Feb 23, 2023
Forked from HDI Scatter Plot

This scatterplot displays the United Nations Human Development Index (HDI) for countries over time, comparing the year on the x-axis against the HDI value on the y-axis. The visualization uses semi-transparent circles to reveal dense clusters of data points, making trends in global development visible. The code leverages D3 version 7’s `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` functions to construct the chart, with data parsed from a CSV file using `csvParse`. The visualization also separates male and female HDI measurements into distinct datasets.

AI-generated description

A simple scatterplot of the HDI dataset: https://gist.github.com/smcavey/5f819b6d6a270c6de339532a592399d4 Comparing mean life expectancy at birth in the year 2021 (x) vs. gross national income per capita in the year 2021 (y). Pretty clear trend. Added opacity so its easier to visualize dense clusters. Information on the outliers would be nice, such as using a mouse hover to see the country name

MIT Licensed

Similar vizzes