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)

97400bb3783b461e80d4828b1c6e90f8

Fork of Pathetic Bar Chart

0 stars0🌍 Public
IIlyas Filali
Last edited Sep 17, 2022
Created on Sep 17, 2022
Forked from Pathetic Bar Chart

This example visualizes the ten most populous countries as horizontal bars, with bar length proportional to population. It uses React hooks (useState, useEffect) to load and manage data, and d3’s scaleBand and scaleLinear to position and size SVG rectangles. Population figures come from the United Nations World Population Prospects 2019 CSV, sourced via a gist. No axes or labels are drawn, keeping the chart intentionally bare.

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.