Making a Bar Chart
This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. It shows each country’s population as a horizontal bar, with formatted axis labels (e.g., converting thousands to billions) and gridlines. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the chart, rendering via SVG. The axis tick format is customized by replacing ‘G’ with ‘B’ in D3’s compact notation.