🌍 Public
Viewing a saved revision (read-only)
82d7834e07604fe88e2c7241b4178e2b
Customizing Axis
This example customizes the axes of a horizontal bar chart showing the top 10 most populous countries, using D3 v5 with an SVG rendering. It loads population data from a CSV file and scales the values with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis. The code formats tick labels with `d3.format`, removes axis domain lines, and adds custom labels and a title via `axisBottom`, `axisLeft`, and SVG text elements.
AI-generated description