Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
BBetty
Last edited May 5, 2022
Created on May 5, 2022

This example displays the top 10 most populous countries as horizontal bars, with country names on the left and a linear population scale along the bottom. It uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` for positioning and scaling. The data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv` and sliced to the first ten rows. Axes are custom components using D3 tick generation.

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