Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published1🌍 Public
JJadeJOy
Last edited Mar 26, 2021
Created on Mar 26, 2021
Forked from Pathetic Bar Chart

This example renders a deliberately minimal bar chart of the top 100 countries by population, drawn as plain SVG rectangles without any axes or labels. The chart uses React’s `useState` and `useEffect` hooks to load and store data fetched via `d3.csv` from the United Nations World Population Prospects 2019 dataset, selecting only the first 100 entries. Scales are built with `scaleBand` for country categories on the y-axis and `scaleLinear` for population values on the x-axis, mapping each bar’s width to that population. The visual results in a sparse, unadorned layout that emphasizes raw magnitude over context.

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