Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Jjackalakalaka
Last edited Aug 26, 2020
Created on Aug 26, 2020
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries based on 2018 estimates from the United Nations World Population Prospects 2017, with population values multiplied by 1,000. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` for axes, `axisBottom` for the population ticks, and `axisLeft` for country labels, while SVG rectangles render the bars in steelblue. The code formats large numbers with `format('.3s')` and customizes axes by removing default domains and tick lines.

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