Customizing Axes
This bar chart displays the top 10 most populous countries using 2018 United Nations population estimates, with country names on the y-axis and population values on the x-axis. The code customizes D3 v5 axes by removing domain lines, hiding tick lines on the y-axis, and formatting x-axis ticks to abbreviate numbers with a custom formatter that replaces “G” with “B.” It uses `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` from D3, rendering to SVG.