Skip to main content
100%

Pathetic Bar Chart

✓ Published0🌍 Public
TTrustPaul
Last edited Nov 27, 2020
Created on Nov 27, 2020
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a set of horizontal bars, with no axes or labels, rendered as SVG rectangles sized by population from the United Nations World Population Prospects 2019. The React app loads the CSV data using d3.csv, sorts by the 2020 population estimate, and scales the bars with d3.scaleBand for vertical positioning and d3.scaleLinear for width. The bars fill the entire viewport, emphasizing the pathetic lack of any chart furniture, and the code uses React hooks like useState and useEffect to 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