Skip to main content
100%

D3 Axes

✓ Published2🌍 Public
Rrdeichert
Last edited Dec 19, 2019
Created on Dec 12, 2019
Forked from D3 Bar Chart

This example displays a horizontal bar chart of the top 10 most populous countries using D3 v5, with populations loaded from a CSV file and scaled linearly. It demonstrates custom axes: the left band scale lists country names without tick lines, while the bottom axis uses a tick formatter that converts values like “1.41G” to “1.41B”. The SVG rendering includes grid lines via negative tick sizes, axis labels, and a title, all styled with external CSS.

AI-generated description
MIT Licensed

Similar vizzes