Skip to main content
100%

myBarChart

✓ Published0🌍 Public
TTsaiJie
Last edited May 2, 2021
Created on May 2, 2021
Forked from Stylized Bar Chart

This bar chart displays the top 10 most populous countries in 2020 using data from the United Nations World Population Prospects 2019. Built with React and D3 v5, it renders SVG rectangles scaled by population via `scaleLinear` and `scaleBand`. The y-axis labels countries, while the x-axis uses `format('.2s')` to display abbreviated values like “1.4B.” Hovering over each bar reveals an exact figure through a native SVG `<title>` tooltip. The chart includes custom axes and a loading state.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes