Viewing a saved revision (read-only)
3a2a837e662b4c6c8b5c3aeb7abadf47
Customizing Axes
This bar chart displays the population of the top 10 most populous countries from the 2018 United Nations World Population Prospects estimate. It demonstrates customized D3 axes, including a bottom axis with abbreviated tick labels (converting billions to “B”) and a left axis with removed domain and tick lines. The code uses D3 v5 APIs such as `csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, rendering SVG elements inside a fixed-width viewport. Custom tick formatting and axis label styling are applied via the `format` module and CSS.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.