Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1_Question2

Public visualization

Viewing a saved revision (read-only)

8b4db4abc1604ef1a5e5bb8f9cf98624

Activity6_Task1_Question2

0 stars1🌍 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