Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Aanindyamehta@gmail.com
Last edited Jan 2, 2024
Created on Jan 2, 2024
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as ranked bars, with no axes or labels, using a minimal bar chart layout. It loads United Nations World Population Prospects 2019 data via `d3.csv`, then sorts and slices the first ten rows. React state management (`useState`, `useEffect`) handles the asynchronous data fetch, while `d3.scaleBand` and `d3.scaleLinear` map countries and population values to SVG rectangles. The visualization renders in SVG, with bar widths proportional to 2020 population estimates.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes