Customizing Axes
This example displays a bar chart of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. It demonstrates customization of D3 axes, including removing default domains, using a custom tick formatter that converts billions to a readable format, and applying gridlines. The chart is rendered as SVG, with axes created via `d3.axisBottom` and `d3.axisLeft`, and styling applied through CSS classes.
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.