🌍 Public
Viewing a saved revision (read-only)
60ae5fc6fc0e4c65b1d60c51d7d4855f
Making a Bar Chart
This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. Each bar’s length is scaled linearly to population values, while country names are positioned along a band scale. The chart is rendered as SVG using D3 v5, with axes generated through `d3.axisLeft` and `d3.axisBottom`, and data loaded via `d3.csv`. Grid lines and axis labels are formatted using `d3.format`.
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.