Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
TTomoyukiEguchi
Last edited Jan 4, 2021
Created on Dec 31, 2020
Forked from Hello VizHub

This bar chart displays the populations of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v5 with SVG rendering, employing `scaleLinear` for the population axis and `scaleBand` for country categories. The code includes `axisBottom` with custom tick formatting that converts large numbers to abbreviated units, plus `axisLeft` for country labels. Horizontal gridlines are drawn using `tickSize(-innerHeight)`, and the chart includes axis labels and a title.

AI-generated description

This bar chart shows population of the top 10 most populous coutries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.

MIT Licensed

Similar vizzes