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)

c7b3d8e800754b4db2d5b32e7d08f216

Fork of Pathetic Bar Chart

0 stars0🌍 Public
Kkrandslam
Last edited Oct 12, 2023
Created on Oct 12, 2023
Forked from Pathetic Bar Chart

This visualization presents the top 10 most populous countries as a "pathetic" bar chart, intentionally omitting axes and labels to strip the data down to its raw visual form. Using D3's `scaleBand` and `scaleLinear`, the chart maps country names to vertical bands and population values to horizontal bar widths within an SVG. The data comes from the United Nations World Population Prospects 2019, loaded via D3's `csv` function. Built with React, the chart updates state asynchronously, rendering a `<pre>` loading message until the data arrives, then displaying the SVG with filled rectangles.

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.