Skip to main content
100%

Customizing Axes of Bar Chart w/ D3

✓ Published1🌍 Public
GGabe Nascimento
Last edited Oct 14, 2021
Created on Oct 14, 2021

This bar chart visualizes the population of the top 10 most populous countries, using 2018 estimates from the UN’s World Population Prospects. The chart uses a linear scale for the population axis and a band scale for country names, with custom tick formatting that converts SI units (e.g., G to B). Population values are scaled by 1000. The D3 code removes default domain lines and tick marks, adds axis labels, and renders the bars in 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 World Population Propsects 2017.

MIT Licensed

Similar vizzes