Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
SSalha Saad
Last edited Jul 5, 2019
Created on Jul 5, 2019
Forked from Customizing Axes

This chart displays the population of the top 10 most populous countries using a horizontal bar chart, with data sourced from the 2018 United Nations World Population Prospects estimate. It demonstrates customizing D3 axes by removing the default domain lines, styling tick text and lines via CSS, and formatting large population values with a custom tick formatter that abbreviates billions as "B". The visualization is built with d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom, rendering to SVG.

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. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes