Skip to main content
100%

Activity6_Task1_Question2

✓ Published1🌍 Public
Hharshabandi3060@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

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

Similar vizzes