Customizing Axes
This bar chart displays the top 10 most populous countries in 2018, using population estimates from the United Nations World Population Prospects 2017. The example shows how to customize axes with D3 v5, including tick formatting, axis labels, and grid lines. It uses `d3.csv`, `scaleLinear`, and `scaleBand` to map data, while `axisBottom` and `axisLeft` render the axes with custom tick formats converting values to abbreviated units. The SVG rendering removes default axis domains and applies styled tick lines via 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.