Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
DDan Henri
Last edited Oct 2, 2018
Created on Oct 2, 2018
Forked from Making a Bar Chart

This example shows a horizontal bar chart ranking the ten most populous countries, with values reformatted from raw numbers into readable abbreviations (e.g., "1.42B"). Custom axis styling removes default domain lines and tick marks, adds a centered "Population" label, and applies a large, muted color palette to text and gridlines. Built with D3 v5, it uses `scaleLinear` and `scaleBand` to map population and country names, `axisBottom` and `axisLeft` for axes, and `csv` to load the data, which is multiplied by 1000 during preprocessing. The chart is rendered as SVG with rectangles filled in steel blue.

AI-generated description
MIT Licensed

Similar vizzes