🌍 Public
Viewing a saved revision (read-only)
d38894346c634619802946b16eed7515
Customizing Axes
A horizontal bar chart displays the populations of the four most populous countries, with the United States incorrectly plotted as 326,767,000. The chart uses D3 v6 scales and axes, including `scaleLinear` for the population axis and `scaleBand` for the country categories. Custom tick formatting converts large numbers using `d3.format` to abbreviations like “B” for billions. The axes are heavily styled, with grid lines via `tickSize`, and the left axis removes its domain and tick lines entirely.
AI-generated description