Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
AAnu Wat
Last edited Oct 16, 2021
Created on Oct 16, 2021
Forked from Pathetic Bar Chart

This chart displays the top 10 most populous countries as horizontal bars, with bar length proportional to each country’s 2020 population estimate. The visualization intentionally omits axes and labels, focusing solely on relative magnitudes. It loads data from the United Nations World Population Prospects 2019 CSV, filters to the first ten rows, and renders using React with SVG `rect` elements. The code employs D3 v5’s `scaleBand` for the categorical y-axis placement and `scaleLinear` for mapping population values to pixel widths.

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