Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
PPiotr Paszek
Last edited Apr 21, 2021
Created on Apr 21, 2021

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
MIT Licensed

Similar vizzes