🌍 Public
Viewing a saved revision (read-only)
73ed4f7b2b2c4e7d9676db861d82fcf6
P1 - Task 1
This example shows a horizontal bar chart ranking countries by population, with the United States, China, and India among the largest. The bars are drawn using D3.js version 5, with `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` for the axes. Population data is loaded from a CSV file and multiplied by 1000 to reflect actual values. The SVG rendering uses steel-blue bars with a left margin to accommodate country labels.
AI-generated description