Customizing Axes
This bar chart displays the population of the top 10 most populous countries, with data from the 2017 United Nations World Population Prospects estimate. It builds on a basic bar chart by customizing the D3 axes: the y-axis removes domain and tick lines, while the x-axis uses `axisBottom` with a custom tick formatter that converts large numbers to abbreviated billions and draws horizontal grid lines across the chart. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, rendered as SVG with data loaded from a CSV file.
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.