Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
FFlorent Eeckeman
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from Pathetic Bar Chart

This fork of the "Pathetic Bar Chart" displays the ten most populous countries as horizontal bars without any axes, using React to manage state and D3.js to load and scale the data. It fetches the 2019 UN World Population Prospects CSV, parses it with `d3.csv`, and renders the bars as SVG `rect` elements. The `scaleBand` maps country names to x-positions, while a reversed `scaleLinear` maps population values to bar heights, with the y-axis inverted for visual effect.

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