Skip to main content
100%

customizing axes

✓ Published0🌍 Public
SSnivvy
Last edited May 20, 2020
Created on May 20, 2020
Forked from Making a bar chart

This example demonstrates a horizontal bar chart of the eight most populous countries, with population values formatted in billions using a custom tick formatter that replaces "G" with "B." The chart uses `d3.csv` to load data, `d3.scaleLinear` and `d3.scaleBand` for scaling, and `d3.axisBottom` and `d3.axisLeft` for axes. Grid lines extend from the x-axis ticks, while the y-axis domain line is removed for a cleaner look. The SVG is rendered via React.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes