Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
KKonJoDot
Last edited Oct 22, 2022
Created on Oct 22, 2022
Forked from Pathetic Bar Chart

This example displays the ten most populous countries as horizontal bars, with bar length encoding population size and no axes or labels. It uses React hooks to fetch and manage data from the United Nations World Population Prospects 2019 CSV, then renders SVG rectangles with d3.scaleBand for vertical positioning and d3.scaleLinear for bar widths. The visualization updates asynchronously after loading, showing a loading state until the data arrives.

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