Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
YYing-Liu21
Last edited Apr 14, 2021
Created on Apr 14, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a bar chart stripped of all axes and labels, emphasizing raw bar lengths over context. Built with React and D3, it loads United Nations World Population Prospects 2019 data via `d3.csv`, converts the “2020” population field to numbers, and slices the dataset to the first ten rows. Each bar is an SVG rectangle positioned with `d3.scaleBand` for the y-axis and sized using `d3.scaleLinear` and `d3.max` for the x-axis, all within a fixed 960×500 viewport.

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