Customizing Axis
✓ Published1🌍 Public
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.
MIT Licensed