🌍 Public
Viewing a saved revision (read-only)
064c382155e64375a10a22883572ae1e
Customizing Axes
This example shows a horizontal bar chart of the ten most populous countries, with country names on the y-axis and population on the x-axis, using a red fill for each bar. It customizes the axes by removing domain lines and tick marks from the left axis, while the bottom axis uses a tick format that converts "G" (giga) to "B" (billion) via `d3.format`. The chart is rendered in SVG using `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with data loaded from a CSV file.
AI-generated description