Skip to main content
100%

styled Fork of refactor bar chart

✓ Published0🌍 Public
NNart Williamson
Last edited Apr 28, 2021
Created on Apr 28, 2021
Forked from refactor bar chart

This bar chart displays the top 10 most populous countries with a horizontal bar for each, using population values from the United Nations World Population Prospects 2019 dataset. The chart renders in SVG via React components, with axes drawn using custom React elements that reference d3 scales (`scaleBand` and `scaleLinear`) for positioning. The bottom axis uses `xScale.ticks()` to generate tick marks, while the left axis maps country names. Population data is loaded asynchronously with `d3.csv` and sorted to show the ten largest entries.

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