Customizing Axes
This bar chart shows the populations of the top 10 most populous countries, based on 2018 United Nations estimates from the World Population Prospects 2017 data. It demonstrates how to customize D3 axes, including removing axis domains and tick lines, applying a custom tick format that converts billions to millions, and adding axis labels. The visualization uses D3 v5 APIs such as `csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, rendering to an SVG element with redrawn ticks and styled text.
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.