🌍 Public
Viewing a saved revision (read-only)
540c99a19ad14a70a0b5dbf758c9712e
Making BAR Chart
A horizontal bar chart displays population figures for eight countries, with bars sorted by country name. It uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and SVG `rect` elements for the bars. Data is loaded from a CSV file via `csv()`, and axes are generated with `axisLeft` and `axisBottom`. Population values are multiplied by 1000, and bars are styled with a steelblue fill.
AI-generated description