Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Mmeihaoming
Last edited Oct 25, 2019
Created on Oct 25, 2019
Forked from Customizing Axes

This visualization displays the population of the top 10 most populous countries in 2018, using data from the United Nations World Population Prospects. It demonstrates how to customize D3 axes: the x-axis uses tick formatting to abbreviate large numbers (converting G to B for billions), while the y-axis removes its domain line and tick marks. The bar chart is rendered as SVG, with the d3.scaleLinear, d3.scaleBand, d3.axisBottom, and d3.axisLeft APIs handling scales and axes. Grid lines extend across the chart from the x-axis ticks, and custom labels are added for the title and population axis.

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