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
FFlorent Eeckeman
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from Pathetic Bar Chart

This fork of the "Pathetic Bar Chart" displays the ten most populous countries as horizontal bars without any axes, using React to manage state and D3.js to load and scale the data. It fetches the 2019 UN World Population Prospects CSV, parses it with `d3.csv`, and renders the bars as SVG `rect` elements. The `scaleBand` maps country names to x-positions, while a reversed `scaleLinear` maps population values to bar heights, with the y-axis inverted for visual effect.

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