Skip to main content
100%

Customizing axis

✓ Published2🌍 Public
Aalobry
Last edited Dec 16, 2020
Created on Dec 16, 2020

This histogram displays the top 10 most populous countries using a horizontal bar chart. The chart customizes both axes by removing default domain lines and tick marks, while formatting population values with a custom tick format that converts billions to "Md". Built with D3 v6, it uses `scaleBand` and `scaleLinear` for positioning, `axisLeft` and `axisBottom` for axes, and `d3.csv` to load population data from the UN World Population Prospects. The SVG rendering includes a title and axis label, with steel-blue bars and styled tick text.

AI-generated description

Histogram from CSV file Data comes from https://population.un.org/wpp/Download/Standard/Population/

MIT Licensed

Similar vizzes