Skip to main content
100%

Customizing axes

✓ Published2🌍 Public
SSimmer999
Last edited Feb 20, 2021
Created on Feb 12, 2021
Forked from Bar Chart

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

Similar vizzes