Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
KKunkgg
Last edited Mar 25, 2021
Created on Mar 25, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as bars spanning the full width of the SVG, with no axes or labels. Data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv` and sorted by 2020 population. React hooks (`useState`, `useEffect`) manage the asynchronous data fetch, while `d3.scaleBand` and `d3.scaleLinear` position the rectangles. The rendering uses SVG generated from React components, with bars sized proportionally to population values.

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