🌍 Public
Viewing a saved revision (read-only)
baef026ef6bf4f8699acc7a2ba6b7810
Customizing axes
This example shows a horizontal bar chart of the top 10 most populous countries, with population values displayed along the x-axis and country names on the y-axis. It customizes axis elements by removing domain lines, using abbreviated tick labels that convert "G" to "B" via `format('.3s')`, and adding a rotated axis title. The chart is built with D3 v5, using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, rendering to SVG from a CSV file. Grid lines are created through `tickSize(-innerHeight)`, and the y-axis’s domain and tick lines are removed.
AI-generated description