Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Mmuwu16
Last edited Aug 18, 2021
Created on Aug 1, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a simple bar chart with no axes or labels, leaving the bars visually raw and unadorned. It loads United Nations population data from a CSV file, parses the 2020 values, and sorts the dataset before rendering. The visualization is built with React, using the `useState` and `useEffect` hooks to manage data loading, while D3’s `scaleBand` and `scaleLinear` map country names and population counts to SVG rectangles. The bars fill the full width and height of the SVG canvas, with no styling or annotations.

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.

MIT Licensed

Similar vizzes