Loading Data with React & D3 - UN population
✓ Published1🌍 Public
This visualization displays the top 10 countries by population in 2020 as a bar chart, using UN population data loaded from a CSV file. It integrates React with D3 v7, employing `scaleBand` for the y-axis categories and `scaleLinear` for the x-axis values. The chart renders as SVG rectangles with widths proportional to population, and the app initially shows a “loading” state before fetching and parsing the data via D3’s `csv` function.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed