Customizing Axes
A horizontal bar chart ranks the top 10 most populous countries, displaying population sizes along the x-axis with custom tick labels that abbreviate large numbers (e.g., “1.42B” for China). The example uses React with D3 v6, importing `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load `data.csv`, scale the data, and render SVG axes. It customizes the x-axis tick format via `format('.3s')` and applies styling to axis lines, ticks, and labels through CSS.