Making a Bar Chart
This bar chart displays the top 10 most populous countries based on 2018 estimates from the United Nations World Population Prospects 2017, with population values multiplied by 1,000. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` for axes, `axisBottom` for the population ticks, and `axisLeft` for country labels, while SVG rectangles render the bars in steelblue. The code formats large numbers with `format('.3s')` and customizes axes by removing default domains and tick lines.