🌍 Public
Viewing a saved revision (read-only)
3a1f2f1407be4a20944e06862c97a37e
Customizing axes
This example displays a horizontal bar chart of the top ten most populous countries. Built with D3 v5, it uses `scaleLinear` and `scaleBand` to map population and country names. The chart features a customized x-axis that formats large numbers using `format('.3s')` and replaces 'G' with 'B'. Both axes remove their default domain lines, while `axisBottom` adds population labels and grid ticks from the CSV data.
AI-generated description