Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Q2

Public visualization

Viewing a saved revision (read-only)

41d6a72a6f414f9985d6c88fbdac26a2

Activity 6_Q2

0 stars0🌍 Public
SSrihith Reddy Gaddam
Last edited Apr 27, 2025
Created on Apr 27, 2025
Forked from Activity 6_Q1

A horizontal bar chart displays the 2010 populations of the top 20 countries, sorted from largest to smallest. The visualization uses a D3 scaleBand for the categorical y-axis and a scaleLinear for the numerical x-axis, with population values formatted using the D3 `format` function to abbreviate large numbers. React functional components render the SVG axes and marks, with a native SVG `<title>` element providing hover tooltips. Data is loaded asynchronously from a CSV file via the `d3.csv` method, filtering and sorting the dataset before rendering the bars.

AI-generated description