Skip to main content
100%

Customising Axes

✓ Published1🌍 Public
JJadeITNT
Last edited Nov 26, 2021
Created on Nov 18, 2021
Forked from Making a Bar Chart

This visualization shows the ten most populous countries as a horizontal bar chart, with custom formatting applied to both the x-axis and y-axis. Population values are abbreviated using D3’s `format('.3s')` and then converted from billions to a friendlier label, while the y-axis labels are cleaned by removing tick lines and the domain path. The chart uses `scaleLinear` for the population axis, `scaleBand` for the country categories, and `axisBottom` and `axisLeft` for rendering, with data loaded from a CSV file via `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes