Skip to main content
100%

Pathetic Bar Chart

✓ Published1🌍 Public
AAnthonyAl-Rifai
Last edited Feb 20, 2023
Created on Feb 20, 2023

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 description

A program that loads in some data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes