Making a bar chart
This bar chart displays the population of the ten most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. Rendered as SVG, the visualization encodes population on a linear x-axis and country on a categorical y-axis. The code leverages D3.js v5 APIs including `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load the data, compute scales, and draw axes. Bars are appended as `rect` elements, and the data is preprocessed by multiplying the population values by 1000.