Fork of style Bar Chart
✓ Published0🌍 Public
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 descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed