Practice 1
This example presents a horizontal bar chart of population data for five countries, loaded from a local CSV file. The visualization encodes population values as bar widths using D3’s `scaleLinear`, while country names are positioned along the y-axis with `scaleBand` and padding. Both axes are generated with `axisLeft` and `axisBottom`. The chart is rendered as SVG elements appended to a fixed-size `<svg>`, with rectangles styled via an external CSS file. The code demonstrates importing D3 modules such as `select`, `csv`, and `max` within a bundled ES6 setup.