Skip to main content
100%

Customizing Axes

✓ Published2🌍 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.

MIT Licensed

Similar vizzes