🌍 Public
Viewing a saved revision (read-only)
79fb4b9f2fb7431c8b9a26c4289b2891
Customizing Axes
This example shows a horizontal bar chart of population data for ten countries, with customized axes. The y-axis displays country names using a band scale, while the x-axis uses a linear scale with tick labels formatted in abbreviated units (e.g., “1.42B”) via d3.format and a custom replace function. The chart is rendered as SVG using d3-scale, d3-axis, and d3-selection, with data loaded from a CSV file and styled through external CSS.
AI-generated description