Making a Bar Chart
✓ Published0🌍 Public
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 descriptionThis 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