Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
MMarcusABR
Last edited Nov 2, 2022
Created on Nov 2, 2022
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a minimalist bar chart with no axes, using horizontal bars whose lengths encode population values. Built with React and D3 v5, the code loads UN World Population Prospects 2019 data via `d3.csv`, then constructs scales with `scaleBand` and `scaleLinear` to map countries and populations to SVG rectangles. The chart renders purely through React state management and JSX, with each bar’s width derived from the population maximum.

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