Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
DDavid Burris
Last edited Jun 20, 2020
Created on Jun 18, 2020
Forked from Making a barchart

This example visualizes the top 10 most populous countries as horizontal bars, using a custom-styled SVG canvas. Built with React and D3 v5, it constructs linear and band scales and renders left and bottom axes. Axis grid lines and tick labels are styled via CSS, with the x-axis formatted to abbreviate large numbers (e.g., "1.44B"). The chart also removes default axis domains and adds custom axis and title labels. Data is loaded from a CSV file using `d3.csv`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes