Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
AAbirKhan96
Last edited Feb 17, 2020
Created on Feb 17, 2020
Forked from Customizing Axes

A horizontal bar chart displays the population of the top 10 most populous countries, with China leading at over 1.4 billion. The chart uses a categorical y-axis (country names) and a linear x-axis (population), drawn with SVG. The code leverages `d3.csv` to load population data, `scaleLinear` and `scaleBand` for scaling, and `axisBottom` with a custom tick formatter to abbreviate large numbers (e.g., converting billions from 'G' to 'B'). The default axis domain lines and tick marks are removed for a cleaner look.

AI-generated description
MIT Licensed

Similar vizzes