🌍 Public
Viewing a saved revision (read-only)
664f968fe2d14a1d800bc2a8d5f3932d
Customizing Axis
A horizontal bar chart displays the populations of the 15 most populous countries, using 2020 estimates from the United Nations World Population Prospects. D3's `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` APIs structure the visualization, with the x-axis formatted to abbreviate large numbers (e.g., "1.43B") via `format`. The chart customizes axes by removing default domain lines and tick lines, styling remaining ticks, and adding custom labels and a title.
AI-generated descriptionThis bar chart shows population of the to 15 most populous contries. The data comes from the year 2020 estimate in United Nations: World Population Prospects 2020.