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)

98457ee986cd4346823d1062d021655e

Fork of Pathetic Bar Chart

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

This example displays the top 10 most populous countries as horizontal bars, using bar length to encode population without any axes or labels. The visualization is built with React and D3 v5, reading United Nations population data from a CSV file. It uses d3.csv for data loading, d3.scaleBand for the categorical y-axis positions, and d3.scaleLinear for the quantitative x-axis scaling. The bars are rendered as SVG rectangles within a red-background SVG canvas, positioned using D3’s transform utility.

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.