Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
AAvonlea Fisher
Last edited Feb 19, 2021
Created on Feb 19, 2021
Forked from Pathetic Bar Chart

This visualization displays the ten most populous countries as a set of horizontal bars with no axes, labels, or other chart furniture. The bars are rendered as SVG rectangles using React, with their widths scaled linearly by each country’s 2020 population estimate from the United Nations World Population Prospects dataset. The code uses d3.csv to load the data, d3.scaleBand for the vertical positioning of each country, and d3.scaleLinear for mapping population to bar width. The chart updates once the data arrives, showing a "Loading..." state initially.

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