Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
SSampras Dsouza
Last edited Jun 13, 2022
Created on Jun 13, 2022
Forked from Pathetic Bar Chart

This example displays the ten most populous countries as horizontal bars of varying length, with no axes or labels. The chart uses React to manage state and render SVG rectangles, while D3’s `scaleBand` and `scaleLinear` position and size the bars based on population values. Data comes from the United Nations World Population Prospects 2019, loaded as CSV via `d3.csv` and filtered to the first ten rows. The visualization updates once the data is fetched, showing a simple loading message before the bars appear.

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