Skip to main content
100%

05_Customizing Axes

✓ Published0🌍 Public
LLuiz Domingues
Last edited May 15, 2022
Created on May 15, 2022
Forked from Customizing Axes

This visualization shows the top 10 most populous countries based on 2018 United Nations estimates, with China, India, and the United States leading. It builds on a basic bar chart by customizing d3.axisBottom with tick formatting that converts large numbers to abbreviated labels, turning G into B for billions. The chart removes default domain lines and tick marks from both axes, adds a rotated title, and includes explanatory axis labels. Data is loaded from a CSV file and rendered as SVG rectangles using d3.scaleLinear for the population scale and d3.scaleBand for the country categories.

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