Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
GGeekboxer
Last edited Jul 27, 2021
Created on Jul 27, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a series of unlabeled rectangles, with bar width proportional to each country’s projected 2020 population, and no axes or gridlines. Using React hooks to manage state, it fetches tabular data from the United Nations World Population Prospects 2019 via `d3.csv`, then renders SVG rectangles scaled with `d3.scaleBand` for the y-axis categories and `d3.scaleLinear` for the x-axis values. The visualization intentionally omits chart furniture to emphasize raw quantitative comparison.

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