Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Ssmeiyin
Last edited Mar 19, 2021
Created on Mar 18, 2021

This example displays the top 10 most populous countries as a horizontal bar chart, with country names on the left axis and population values along the bottom axis. It uses React components to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` for positioning and scaling, and manually drawn axis components (`AxisBottom`, `AxisLeft`) to avoid D3 axis helpers. Data is loaded asynchronously via `useData` and D3’s `csv` from the United Nations World Population Prospects 2019 dataset, with the chart updating once the data arrives.

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