HDI Scatter Plot
This scatter plot displays the relationship between life expectancy at birth and gross national income per capita for countries in 2021, revealing a clear positive trend. The visualization uses D3 v7 with `scaleLinear` for axes and `join()` to bind data to circles with opacity for dense clusters. The data comes from a CSV file parsed with `csvParse`, and the axes are rendered using `axisLeft` and `axisBottom` from the D3 library.
AI-generated descriptionA 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