Pathetic Bar Chart
✓ Published1🌍 Public
This bar chart visualizes the top 10 most populous countries in 2020 using data from the UN Population 2019 dataset. A horizontal bar encodes each country’s population with a rectangle, positioned along a band scale and scaled by a linear scale from D3. The React app loads the CSV via `d3.csv`, stores it in state with `useState`, and renders the SVG bars through React’s DOM. Once loaded, the chart appears, replacing an initial “Loading…” text.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of the data.
MIT Licensed