Skip to main content
100%

Basic bar chart no axis

✓ Published1🌍 Public
11tang
Last edited Apr 11, 2021
Created on Apr 11, 2021

This example presents the ten most populous countries as horizontal bars, using bar length to encode population size while omitting axes entirely. Built with React and D3 v5, it loads data from the United Nations World Population Prospects 2019 CSV, maps each country to a `scaleBand` y-coordinate, and scales bar widths with `scaleLinear` and `max`. The SVG rendering employs React’s `useEffect` to fetch and parse the data, populating a simple `rect` per row.

AI-generated description

A program that shows the top 10 most populous countries as a basic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes