Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
EEthan Pierce
Last edited Apr 5, 2021
Created on Apr 5, 2021
Forked from Pathetic Bar Chart

This bar chart displays the top 10 most populous countries using United Nations World Population Prospects 2019 data, loaded via `d3.csv`. The visualization uses `d3.scaleBand` for categorical country labels and `d3.scaleLinear` for population values, rendered as SVG rectangles through React components. Custom React components encapsulate the axes and marks, with formatted tick labels using `d3.format` to abbreviate billions. The chart updates via React hooks (`useState`, `useEffect`), and includes interactive tooltips showing precise population values on hover.

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