Making a Bar Chart
✓ Published2🌍 Public
This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from World Population Prospects 2017. The visualization uses d3.scaleLinear and d3.scaleBand to map population values and country names to positions, with axes rendered via d3.axisLeft and d3.axisBottom. Population values are loaded from a CSV file using d3.csv and formatted with d3.format. The chart is drawn as SVG rectangles inside a fixed-width container, with a custom title and axis label included.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.
MIT Licensed