Skip to main content
100%

Cusomizing Axis

✓ Published1🌍 Public
HHadi Boukdir
Last edited Jul 16, 2019
Created on Jul 16, 2019
Forked from Making a Bar Chart

This example shows a horizontal bar chart of regional populations, with a customized axis that formats large numbers (e.g., converting billions to a compact "B" suffix) and removes default axis domain lines. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, along with the `format` API for tick labels. Data is loaded from a CSV via `d3.csv` and rendered as SVG rectangles. The chart also includes a titled label for the population axis and light-green bars.

AI-generated description

bar chart

MIT Licensed

Similar vizzes