Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Aahmadazharza
Last edited Apr 25, 2019
Created on Apr 25, 2019

This bar chart displays the 2018 population estimates for the ten most populous countries, sourced from the United Nations World Population Prospects 2017. The chart uses horizontal bars, with countries on the y-axis and population on the x-axis, rendered as an SVG. The visualization is built with D3 v5, employing `scaleLinear` and `scaleBand` for scales, and `axisLeft` and `axisBottom` to draw the axes. Data is loaded from a CSV file using D3’s `csv` function, and population values are multiplied by 1000 to reflect the actual figures.

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.

MIT Licensed

Similar vizzes