🌍 Public
Viewing a saved revision (read-only)
c1dc10ebfcb246bc8e5fe86176577120
United Nations Population Estimates
This visualization displays the top 10 countries by estimated 2020 population using a horizontal bar chart rendered as SVG. D3’s `scaleBand` and `scaleLinear` map country names and population values to screen coordinates, while React manages state through the custom `useData` hook, which loads the United Nations dataset via `d3.csv`. Axes ticks are generated with `xScale.ticks()`, and each bar’s width derives from the population value.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.