Skip to main content
100%

act6_Q.2_11719493

✓ Published1🌍 Public
Ssravani1969@gmail.com
Last edited Mar 28, 2025
Created on Mar 28, 2025
Forked from Hello VizHub

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
MIT Licensed

Similar vizzes