Making a Bar Chart
✓ Published1🌍 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’s `scaleLinear` and `scaleBand` to map population values and country names, with `axisLeft` and `axisBottom` rendering the axes. Data is loaded from a CSV file via `d3.csv`, and the bars are drawn as SVG rectangles with a steelblue fill.
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