Customizing Axes
This bar chart shows the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The example demonstrates how to customize D3 axes, including formatting tick labels to abbreviate numbers (e.g., turning billions into "B") and removing default axis lines and domain marks. It uses D3 v5 APIs such as `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft`, with styled tick text, gridlines, and labels. The SVG rendering includes margins, a title, and an x‑axis label.