Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
SShawn Kearney
Last edited Jan 5, 2020
Created on Jan 5, 2020
Forked from Making a Bar Chart

This bar chart ranks the top 10 most populous countries using 2019 United Nations estimates, with population values multiplied by 1,000 to reflect raw counts. It demonstrates custom axis styling in D3 v5: the y-axis removes its domain and tick lines, while the x-axis uses a custom tick formatter (d3.format) to abbreviate large numbers as billions and draws gridlines via negative tick sizes. SVG text elements receive explicit font sizes and colors to create a distinct visual hierarchy, including a large "Population" axis label and a descriptive title.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2019 estimate in United Nations: World Population Prospectus 2019.

MIT Licensed

Similar vizzes