Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
SSpuddy2884
Last edited Sep 14, 2021
Created on Sep 14, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a lamentably bare bar chart, with no axes or labels, using React for rendering and SVG for output. The chart pulls data from the United Nations World Population Prospects 2019 via a CSV, loading it with `d3.csv` and processing it in a `useEffect` hook. The bar lengths are scaled using `d3.scaleLinear`, while the vertical positions come from `d3.scaleBand`, which also provides the bar heights. The visualization is intentionally minimal, showing only the raw rectangles of varied widths.

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