Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
TTrevor McReynolds
Last edited Jan 3, 2022
Created on Jan 3, 2022
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a set of horizontal bars, lacking any axes or labels. The bar lengths encode each country’s 2020 population estimate from the United Nations World Population Prospects 2019 dataset. React manages the component state and rendering, while d3.csv loads and parses the data, and d3.scaleBand and d3.scaleLinear map the country names and population values to SVG rectangle positions and widths. The visualization updates asynchronously after the CSV file is fetched.

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