Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
KKurt J Nilsen
Last edited Aug 1, 2020
Created on Aug 1, 2020
Forked from Making a bar chart

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 description

This 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

Similar vizzes