Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the population of the top 10 most populous countries using 2018 United Nations estimates. The code loads the data with `d3.csv`, converts population values to thousands, and renders SVG rectangles scaled with `d3.scaleLinear` and `d3.scaleBand`. It customizes the axes using `d3.axisLeft` and `d3.axisBottom`, which are appended to an SVG group with explicit margins. The bars are styled in steelblue via the linked stylesheet.
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