Customizing Axes
This bar chart displays population estimates for the top 10 most populous countries from the 2018 United Nations World Population Prospects. It demonstrates customized D3 axes, using `d3.scaleLinear` and `d3.scaleBand` with `d3.axisBottom` and `d3.axisLeft`. Axis tick labels are formatted with `d3.format` (converting billions to "B"), grid lines are styled, and the left axis’s domain and tick lines are removed. The SVG rendering highlights red tick lines and custom axis label styling.
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.