Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pathetic Bar Chart2

Public visualization

Viewing a saved revision (read-only)

7af88ca013d64499b0994ef5e7512cc2

Fork of Pathetic Bar Chart2

0 stars0🌍 Public
Bbart
Last edited Jun 16, 2021
Created on Jun 16, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a horizontal bar chart, with no axes or labels, using country names as categorical bands and population counts mapped to bar widths. The code loads UN World Population Prospects 2019 data via `d3.csv`, parses the 2020 population column, and slices the first ten rows. It renders SVG rectangles using React components and D3 scales: `scaleBand` for the y-axis positioning and `scaleLinear` for the x-axis extent, with dimensions fixed at 960 by 500 pixels.

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.