Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Xxiaopangzi2333
Last edited Jun 27, 2020
Created on Jun 27, 2020
Forked from Customizing Axes

This example displays the population of the top 10 most populous countries as a horizontal bar chart, using data from the 2018 United Nations World Population Prospects. It highlights customized axis styling, including removed tick lines and domain paths, custom tick label formatting that converts G to B for billions, and styled text using `d3.axisBottom` and `d3.axisLeft`. The visualization leverages d3.scaleLinear and d3.scaleBand for scales, d3.format for number formatting, and renders SVG with margins and labels like "Population".

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