Making a Bar Chart
✓ Published3🌍 Public
This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v5 to load CSV data, scale linearly for population values, and scale band for country categories. SVG rectangles are rendered with axes generated by d3.axisLeft and d3.axisBottom, with the data formatted by multiplying each population value by 1,000.
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.
MIT Licensed