Customizing Axes
This scatter plot displays the population of the top 10 most populous countries from the 2018 United Nations World Population Prospects estimate. It demonstrates D3 axis customization, including tick formatting with `format('.3s')` to abbreviate large numbers and replacing 'G' with 'B', plus extended tick lines across the chart. Using `d3.scaleLinear` and `d3.scaleBand`, the bars are rendered in SVG with customized axis labels and styling. The visualization builds on a basic bar chart by refining axes, removing default domains, and adding a custom x-axis label.
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.