Making a Bar Chart
This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The data is loaded from a CSV file and rendered as horizontal bars on an SVG canvas. The code uses d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom from D3 v5, with bars filled in steelblue and sized proportionally to population values. The chart includes axes generated via the axis functions, and population figures are multiplied by 1,000 to reflect full counts.