Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
Uumihito
Last edited May 20, 2020
Created on May 8, 2020

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
MIT Licensed

Similar vizzes