Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Rrkagiri
Last edited Apr 14, 2021
Created on Apr 14, 2021

This bar chart displays the population of the top 10 most populous countries, using 2018 data from the United Nations World Population Prospects. The visualization uses D3 v5 with an SVG rendering, employing `scaleLinear` and `scaleBand` for axes, with `axisBottom` and `axisLeft` to generate customized ticks and gridlines. Population values are read from a CSV file, multiplied by 1000, and bars are drawn as `rect` elements with a steelblue fill, while a custom tick formatter converts large numbers to abbreviated notation.

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