🌍 Public
Viewing a saved revision (read-only)
8b4db4abc1604ef1a5e5bb8f9cf98624
Activity6_Task1_Question2
A horizontal bar chart ranks the populations of 20 countries in 2020, using D3 v5 within a React component. The visualization encodes population values as bar lengths along a linear scale, with country names on a band scale for the y-axis. SVG rendering displays the bars, while D3's `scaleLinear` and `scaleBand` manage the axes. The bottom axis is formatted using D3's `format` with a `.2s` specifier to abbreviate values, and the data is loaded as CSV from a GitHub repository.
AI-generated description