Skip to main content
100%

The Pathetic barchat

✓ Published1🌍 Public
NNana Kwame
Last edited Aug 21, 2023
Created on Aug 21, 2023

The Pathetic barchart displays the top-ten most populous countries in 2020, ranked along the y-axis with horizontal bars scaled by population. The visualization uses React for component state management and `useEffect` to load CSV data via D3’s `csv` utility from World Population Prospects 2022. D3’s `scaleBand` and `scaleLinear` map each country name to a vertical band and each population value to a bar length, rendered as SVG `<rect>` elements. The chart presents raw population values without axes or labels, relying solely on bar widths for comparison.

AI-generated description

A program that loads in some data from World Population Prospects 2022 using D3 utilities, uses React and D3 to render the data as a pathetic barchat.

MIT Licensed

Similar vizzes