Making a Bar Chart
This bar chart visualizes the populations of the top 10 most populous countries using 2018 United Nations data. It uses d3.scaleLinear for the x-axis population scale, d3.scaleBand for the categorical y-axis, and renders as SVG. The code loads data from a CSV via d3.csv, converts population values to thousands, and appends axis components with d3.axisLeft and d3.axisBottom to a transformed group.