🌍 Public
Viewing a saved revision (read-only)
a5c3d3e5ed894c4fa83f855fc4264900
Formatting Axis
This example displays a horizontal bar chart of the top 10 most populous countries, with population values formatted using a custom tick format that replaces "G" with "B" for billions. The chart uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisLeft and d3.axisBottom to render axes with tick lines extending across the plot. The SVG rendering includes a title, axis labels, and steelblue rectangles for each bar.
AI-generated description