Skip to main content
100%

Customising axes

✓ Published1🌍 Public
SSimon Wongsuwarn
Last edited Jul 7, 2019
Created on Jul 7, 2019

A horizontal bar chart displays the 25 most populous countries in 2020, with population values read from a CSV file and multiplied by 1,000. D3’s `scaleBand` and `scaleLinear` position the bars, while `axisLeft` and `axisBottom` generate axes; the bottom axis uses `tickFormat` to convert values like "1.43G" to "1.43B". The y-axis labels are kept, but its domain lines and tick marks are removed, and the chart adds a title and population axis label.

AI-generated description
MIT Licensed

Similar vizzes