Skip to main content
100%

Fork of HDI Over Time Line Final

✓ Published2🌍 Public
SSpencer McAvey
Last edited Apr 8, 2023
Created on Mar 5, 2023

This visualization displays United Nations Human Development Index (HDI) values for countries from 1990 to 2021, with a drop-down menu allowing users to switch between overall HDI, male HDI, and female HDI datasets. The line chart uses d3.scaleTime and d3.scaleLinear for axes, d3.line to generate paths for each country, and d3.scaleOrdinal with schemeCategory10 to color lines by UNDP developing region. A color legend and interactive hover effects that adjust stroke width are implemented using D3 v7 selection methods. The data is loaded from a CSV file and parsed with d3.csvParse.

AI-generated description

A simple line chart of the HDI dataset: https://gist.github.com/smcavey/5f819b6d6a270c6de339532a592399d4
Comparing HDI values per country over time from 1990 to 2021.
Drop down menu permits choosing between HDI, male HDI values, and female HDI values.

MIT Licensed

Similar vizzes