Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
1123fischer
Last edited Nov 16, 2020
Created on Nov 16, 2020
Forked from Make a bar chart

A horizontal bar chart displays the population of the ten most populous countries, using CSV data loaded with `d3.csv`. The chart customizes its axes with `d3.axisBottom` and `d3.axisLeft`, applying a `d3.format` tick formatter that converts values from G to B. `d3.scaleLinear` and `d3.scaleBand` position the bars, while gridlines are created by extending x-axis ticks with a negative tick size. The y-axis’s domain and tick lines are removed for a cleaner look.

AI-generated description
MIT Licensed

Similar vizzes