Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
TTheAnswer-Is-42
Last edited Jan 2, 2022
Created on Jan 2, 2022

A horizontal bar chart displays the top 10 most populous countries from the UN World Population Prospects 2019 dataset. The chart renders as an SVG using React components, with each bar’s length proportional to the 2020 population estimate. D3’s `scaleBand` and `scaleLinear` APIs position the categorical country labels and numeric population axis, respectively, while `.ticks()` generates gridlines and tick labels. A loading state is shown from React’s `useEffect` until data is fetched via D3’s `csv` parser.

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