Making a simple bar chart
A bar chart displays population estimates for the 24 most populous countries in 2020, using horizontal bars sorted in descending order. The visualization ranks countries from China to Tanzania, with bar lengths proportional to population values loaded from a CSV file. Built with D3 v5, the code uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart in SVG, with population values converted from thousands to raw numbers before rendering.