Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
IIan Russell
Last edited Feb 11, 2021
Created on Feb 11, 2021
Forked from Making a Bar Chart

This example displays a horizontal bar chart of the world’s ten most populous countries, using population data from a CSV file rendered as SVG. It demonstrates customizing D3 v4 axes by removing domain lines and tick marks, applying a tick format that abbreviates large numbers with `d3.format`, and adding custom axis labels and a title. The chart uses `d3.scaleLinear` and `d3.scaleBand` for positioning, with styled tick text and gridlines defined in CSS.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes