Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Ssultanmirzapydev
Last edited Aug 11, 2021
Created on Aug 11, 2021
Forked from Pathetic Bar Chart

This example visualizes the ten most populous countries as horizontal bars, using the United Nations World Population Prospects 2019 dataset. The chart intentionally omits axes, scales, or labels, relying solely on bar lengths to convey relative population sizes. Built with React and D3 v5, the code uses `d3.scaleBand` for the vertical country positions and `d3.scaleLinear` for the bar widths, rendering each bar as an SVG `rect` element. The data is loaded via `d3.csv` and filtered to the top ten entries.

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