Skip to main content
100%

Loading Data with React & D3 - UN population

✓ Published1🌍 Public
SSerind Joshua McCue
Last edited Aug 20, 2022
Created on Aug 20, 2022

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes