Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
Bbambaleq
Last edited Jan 20, 2020
Created on Jan 18, 2020
Forked from Bar Chart

This example displays a horizontal bar chart of the top ten most populous countries, using a custom logarithmic-like axis that converts large numbers into abbreviated forms like "1.41B." The SVG visualization is built with D3 v5, using `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the population x-axis. It loads data from a CSV via `d3.csv`, and customizes both axes by removing default domain lines and applying a tick format that replaces "G" with "B" for billions. The chart includes labeled axes and a title.

AI-generated description
MIT Licensed

Similar vizzes