Making a bar chart
✓ Published1🌍 Public
This bar chart displays the populations of the 20 most populous countries, based on 2020 estimates from the United Nations World Population Prospects. The chart uses a horizontal layout with countries on the y-axis and population values on the x-axis. The code employs d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis, rendering rectangular bars in SVG. Data is loaded using d3.dsv with semicolon delimiters, and axes are generated with d3.axisLeft and d3.axisBottom.
AI-generated descriptionThis bar chart shows population of the to 20 most populous contries. The data comes from the year 2020 estimate in United Nations: World Population Prospects 2020.
MIT Licensed