Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
KKaiWhatmore
Last edited Aug 5, 2022
Created on Aug 4, 2022
Forked from Pathetic Bar Chart

This example visualizes the top 10 most populous countries as a pathetic bar chart, with no axes or labels, using rectangles sized by population values from the United Nations World Population Prospects 2019 dataset. The chart uses React hooks to fetch and parse CSV data via `d3.csv`, then renders SVG bars with `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. The bars are drawn as SVG `<rect>` elements, with widths proportional to each country’s 2020 population estimate.

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