Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Bbart
Last edited Jul 19, 2021
Created on Jun 12, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a bar chart with no axes, using a React component that loads data from the United Nations World Population Prospects 2019. The app fetches CSV data via d3.csv, then uses d3.scaleBand for the y-axis country labels and d3.scaleLinear for the x-axis population values. It renders SVG rectangles for the bars and includes gridlines from d3's tick labels, though no axis titles or tick marks are drawn. The chart updates only after the data loads, showing a loading message initially.

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