Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pathetic Bar Chart

Public visualization

Fork of Pathetic Bar Chart

0 stars0🌍 Public
LLaura Brown
Last edited Feb 6, 2025
Created on Feb 6, 2025
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries in 2020 as a bar chart stripped of axes and labels, arranged vertically with bar lengths proportional to population. It loads data from the United Nations World Population Prospects 2019 CSV via `d3.csv`, formats population values, and slices the first ten rows. React manages the loading state and renders SVG rectangles using `scaleBand` for the y-axis positions and `scaleLinear` for bar widths inside a margin-based group.

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.

Comments

Sign in to join the discussion.

MIT Licensed