Skip to main content
100%

Fork of Fork of Pathetic Bar Chart

✓ Published0🌍 Public
RReymond Mesuga
Last edited Mar 16, 2021
Created on Mar 16, 2021

A bar chart displays the top 10 most populous countries for 2020, using horizontal rectangles without axes or labels. Built with React and D3 v5, the app loads data from the United Nations World Population Prospects via `d3.csv`, filters the first ten rows, and scales bar widths with `d3.scaleLinear`. The SVG rendering uses `d3.scaleBand` to position each country vertically, while React's `useState` and `useEffect` manage asynchronous data loading and render the final chart.

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