Skip to main content
100%

Fork of style Bar Chart

✓ Published0🌍 Public
SSam
Last edited Apr 28, 2021
Created on Apr 28, 2021
Forked from style Bar Chart

This example displays the top 10 most populous countries as a horizontal bar chart, using React for rendering SVG elements and D3 v5 for scales and data loading. The chart utilizes `scaleBand` for the y-axis categories and `scaleLinear` for population values, with a custom `format` function converting large numbers to abbreviations. Population data comes from the United Nations World Population Prospects 2019 dataset, loaded via `d3.csv`. The bars are styled with orange fills, and tick lines and labels appear in muted grays.

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