Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
SStoniee-duplicate
Last edited Apr 7, 2021
Created on Apr 7, 2021
Forked from Pathetic Bar Chart

This example presents a minimalist bar chart of the top 10 most populous countries for 2020, sourced from the United Nations World Population Prospects 2019. It uses React with hooks (`useState`, `useEffect`) to load data via D3's `csv` function, then renders SVG rectangles inside a `<svg>` element. The chart intentionally omits axes and labels, scaling bar widths with `scaleLinear` and positioning them with `scaleBand`. The code includes a commented-out loop for `xScale.ticks()`, but no tick lines are actually drawn.

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