Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

0616e7063912433797813dcc82d7f050

Customizing Axes

0 stars2🌍 Public
KKaleb LaBarrie
Last edited Sep 17, 2021
Created on Jul 27, 2021

This bar chart shows the population of the ten most populous countries, with vertical bars extending from a truncated y-axis. It customizes axes by removing domain lines and tick lines on the left, and uses a tick formatter with d3.format to convert values from billions to a readable scale with ‘B’ suffix. The chart labels the x-axis ‘Population’ and applies a title. The visualization is built with d3.v7, using scaleLinear, scaleBand, axisLeft, and axisBottom, rendering as SVG.

AI-generated description

This bar chart shows the population of the most populous countries.