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
Jjcar@vt.edu
Last edited Jun 13, 2024
Created on Jun 13, 2024
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a rudimentary bar chart, using only rectangles with no axes or labels for context. The chart loads population data from the United Nations World Population Prospects 2019 dataset via a CSV URL. Built with React and D3 v5, it uses `csv` to fetch and parse the data, then `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas dimensions. The visualization updates the displayed bars once the data is loaded, initially showing a “Loading…” message.

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