🌍 Public
Viewing a saved revision (read-only)
0b80a6c4a4cb4a22becaa957062b8921
D3 Axes
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