Customizing Axes
This bar chart visualizes the top 10 most populous countries using 2018 United Nations population estimates. It shows how to customize D3 axes within an SVG rendering. The code uses `d3.scaleLinear` for the population axis and `d3.scaleBand` for countries, applying custom tick formatting via `d3.format` to convert values into billions. The chart also removes axis domains, adds grid lines via negative tick sizes, and includes styled labels, all demonstrated through D3 v5 and CSV-loaded data.
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.