Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
SSunbinSong
Last edited Aug 24, 2022
Created on Aug 24, 2022
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as horizontal bars without axes, using a simple SVG rendering. The chart fetches population data from the United Nations World Population Prospects 2019 CSV, extracting the 2020 population values for each country. Built with React, it leverages d3.scaleBand for the y-axis categories and d3.scaleLinear for the x-axis values, mapping each country’s population to bar widths. The bars are drawn as SVG rectangles, with a loading state shown while data loads asynchronously via d3.csv.

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