Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Ddan815
Last edited Aug 21, 2022
Created on Aug 21, 2022
Forked from Pathetic Bar Chart

This example visualizes the ten most populous countries as a set of plain rectangles, each with a width proportional to its population and no axes or labels. The bar chart is implemented using React and D3 v5, where D3’s `csv` function loads data from the United Nations World Population Prospects 2019, and `scaleBand` and `scaleLinear` map country names and population values to SVG coordinates. Each bar is drawn as an SVG `rect` element generated by React’s `map` function, with the chart rendered inside an `<svg>` component.

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