Making a Bar Chart
✓ Published1🌍 Public
This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart renders as SVG, with a linear scale for population values and a band scale for country names. The code uses d3.csv to load the data, then applies d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to construct the visualization. Bars are appended as rect elements, with China and India visibly dominating the population totals.
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