Fork of Making a Bar Chart
This example displays the top 10 most populous countries as a horizontal bar chart, using population estimates from the 2018 United Nations World Population Prospects data. The chart emphasizes population size through bar length, with a formatted x-axis that abbreviates large numbers using the `d3.format` API. Built with D3 v5, it leverages `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, and D3’s axis components (`d3.axisLeft`, `d3.axisBottom`) to render SVG bars and gridlines. The visualization also customizes axis ticks and removes default domain lines for a cleaner presentation.
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. It also demonstrates customization of D3 axes.