🌍 Public
Viewing a saved revision (read-only)
2ac24e76d23b4a3bbd8c4ef90d32f19b
Customizing Axes
This horizontal bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the World Population Prospects 2017. It uses D3 v6 with an SVG rendering approach. The code employs `d3.csv`, `scaleLinear`, and `scaleBand` for the axes, while `axisBottom` and `axisLeft` generate the ticks. Custom axis formatting via `format('.2s')` converts population values to abbreviated labels like "G" for billions, and gridlines are drawn using negative tick sizes.
AI-generated descriptionThis barchart shows the population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.