Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

d38894346c634619802946b16eed7515

Customizing Axes

0 stars1🌍 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