🌍 Public
Viewing a saved revision (read-only)
c6dc2c4ca11043a5be00a59ed87d0dff
act6_Q.2_11719493
This example shows a horizontal bar chart ranking the top 20 countries by population in 2010, with light green bars sorted from largest to smallest along a linear population scale and a categorical country scale. The chart uses D3 v7’s `scaleLinear` and `scaleBand` to map data loaded via `d3.csv`, with axes rendered using `d3.axisBottom` and `d3.axisLeft`. Population values are formatted with `d3.format` to display billions, and the chart re-renders responsively on window resize.
AI-generated description