🌍 Public
Viewing a saved revision (read-only)
1cc97ded1f8240f3891c32219415e717
Making a Bar Chart
A horizontal bar chart displays population counts for ten countries, sorted alphabetically by country name. Each bar’s length is scaled linearly from zero to the maximum population, while the y-axis uses a band scale for country labels. The visualization is built with D3 v5, using `d3.csv` to load data, `scaleLinear` and `scaleBand` for axes, and SVG rectangles for bars. The chart includes left and bottom axes generated with `axisLeft` and `axisBottom`.
AI-generated description