🌍 Public
Viewing a saved revision (read-only)
0bbb64553dba4e0b97acb93704943ef8
Making a Bar Chart
A horizontal bar chart ranks countries by population, using D3 v6 to load data from a CSV and render SVG rectangles. The code scales population with `scaleLinear` and country names with `scaleBand`, then draws axes via `axisLeft` and `axisBottom`. Bars are appended as `rect` elements, with the data source parsed from the `data.csv` file.
AI-generated description