Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
AAnne Lee Steele
Last edited Oct 26, 2018
Created on Oct 25, 2018
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. It shows how axis customization highlights data clarity: country names appear on the y-axis, while population values on the x-axis use a custom tick formatter that converts large numbers to abbreviated forms like "B" for billions. Built with D3 v5, the example uses `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `tickFormat`. The chart renders as SVG, with gridlines created via `tickSize` and axis labels styled through CSS classes.

AI-generated description

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

MIT Licensed

Similar vizzes