🌍 Public
Viewing a saved revision (read-only)
1ac318f79b844cfc878c5b9e2c03f0cd
Customizing Axis
This example displays a horizontal bar chart of the top ten most populous countries, using a custom logarithmic-like axis that converts large numbers into abbreviated forms like "1.41B." The SVG visualization is built with D3 v5, using `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the population x-axis. It loads data from a CSV via `d3.csv`, and customizes both axes by removing default domain lines and applying a tick format that replaces "G" with "B" for billions. The chart includes labeled axes and a title.
AI-generated description