Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations’ World Population Prospects. It shows population values on a linear scale for the x-axis and country names on a band scale for the y-axis, with axes customized using `d3.axisLeft`, `d3.axisBottom`, and tick formatting via `d3.format`. The chart is rendered as SVG, with data loaded from a CSV file using `d3.csv` and scales created with `d3.scaleLinear` and `d3.scaleBand`.
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