Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
JJi Won Yeom
Last edited Jan 25, 2022
Created on Jan 25, 2022
Forked from Pathetic Bar Chart

This example displays the ten most populous countries as a pathetic bar chart with no axes, using rectangles sized by population. The chart loads United Nations World Population Prospects 2019 data via `d3.csv`, then renders SVG bars with React, ReactDOM, and D3 v5. The code uses `scaleBand` for the y-axis positioning and `scaleLinear` for the widths, while `useState` and `useEffect` manage the asynchronous data loading.

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