Skip to main content
100%

Axes with React & D3

✓ Published0🌍 Public
SShaneBowen1
Last edited Mar 16, 2021
Created on Mar 16, 2021
Forked from Pathetic Bar Chart

This example visualizes the top 10 most populous countries as a horizontal bar chart. Each bar’s length encodes the country’s 2020 population, with a formatted x-axis (using `d3.format` to abbreviate large numbers) and a labeled y-axis. The chart is built with React components that return SVG elements, using `d3.scaleBand` and `d3.scaleLinear` for positioning. Data comes from the United Nations World Population Prospects 2019, loaded 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