Customizing Axes
This bar chart visualizes the population of the top 10 most populous countries, with data from the 2018 United Nations World Population Prospects. The chart shows animated bars that grow in width over five seconds, using a linear scale for the population axis and a band scale for country names. Customized D3 axes are implemented via `axisBottom` and `axisLeft`, including a tick format that converts large numbers to billions. The y-axis lines and domain are removed, while grid lines extend across the chart, with labels styled through 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.