Skip to main content
100%

Fork of Fork of Fork of Making a Bar Chart

✓ Published1🌍 Public
Vvipulrohit127@gmail.com
Last edited Jun 1, 2024
Created on Jun 1, 2024

This horizontal bar chart displays the populations of the ten most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart features customized axes, including formatted tick labels that convert billions to the appropriate scale. Built with D3 v5, the visualization uses `scaleLinear` and `scaleBand` to map population values and country names, respectively. The `axisBottom` and `axisLeft` functions create the axes, while the data is loaded from a CSV file and rendered as SVG rectangles.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes