Skip to main content
100%

Customising axes

✓ Published0🌍 Public
Pp4pravin
Last edited Mar 24, 2020
Created on Mar 24, 2020

This example shows a horizontal bar chart of country populations, with customized axes that improve readability. The y-axis displays country names using `d3.scaleBand`, while the x-axis uses `d3.scaleLinear` with a tick format that abbreviates large numbers via `d3.format`. The chart renders as SVG within a React framework, loading data from `data.csv` and styling bars with steelblue fills. Axes are generated using `d3.axisLeft` and `d3.axisBottom`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes