Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pathetic Bar Chart

Public visualization

Viewing a saved revision (read-only)

7235ce1f31f54fadbd4e51a5492940ce

Fork of Pathetic Bar Chart

0 stars0🌍 Public
Vvigneswaran009
Last edited May 12, 2021
Created on May 12, 2021
Forked from Pathetic Bar Chart

This visualization displays the ten most populous countries as horizontal bars, with no axes or labels, scaled proportionally to their 2020 population estimates from the United Nations World Population Prospects 2019 dataset. The React app fetches CSV data using d3.csv, then uses d3.scaleBand for the y-axis positioning and d3.scaleLinear with d3.max for the x-axis scaling. Each country is rendered as an SVG rectangle element within a fixed 960x500 canvas, with a simple loading message shown before data arrives.

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.