Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Rrishyossarian
Last edited Jan 7, 2022
Created on Jan 7, 2022
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries in 2018, using population estimates from the United Nations World Population Prospects 2017. It shows how d3.csv loads the data and d3.scaleLinear and d3.scaleBand map populations to bar widths and countries to vertical positions. The SVG rendering draws rectangles with cyan fills, while D3 axes are customized to demonstrate formatting. The code also uses d3.max to set the scale domain and d3.select to append elements.

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