Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
NNirjan Khadka
Last edited Sep 24, 2019
Created on Sep 24, 2019
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects estimate. It highlights customized D3 axes, including formatted tick labels that convert large numbers to abbreviated units and styled axis lines. The visualization uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, with axes generated via d3.axisLeft and d3.axisBottom. The chart renders as SVG, with a title and axis label added as text elements.

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