Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ssherryyx
Last edited Apr 10, 2020
Created on Jan 20, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the ten most populous countries, with customized axes and tick formatting. It uses d3.csv to load population data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisLeft and d3.axisBottom to render axes. The code removes default domain lines, applies a custom tick formatter that abbreviates numbers (converting 'G' to 'B'), and rotates labels via SVG text elements, all rendered with React-compatible D3 v5 in an SVG container.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes