🌍 Public
Viewing a saved revision (read-only)
4a15b6dd50a54d418a37dee9ee99f155
Customizing Axes
A bar chart ranks ten countries by population using horizontal bars, with a custom margin and axis layout. The code loads CSV data and uses D3 v5 scales (`scaleLinear`, `scaleBand`) and axes (`axisBottom`, `axisLeft`) to position bars and ticks. The x-axis applies a `format("s")` tick formatter to abbreviate large numbers, while SVG `rect` elements render the bars in steelblue.
AI-generated description