Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Q1

Public visualization

Viewing a saved revision (read-only)

a5121d3158ab40d38a3c51bd29f59c64

Activity 6_Q1

0 stars1🌍 Public
SSrihith Reddy Gaddam
Last edited Apr 27, 2025
Created on Apr 27, 2025
Forked from Activity 6_Task 1

This visualization shows the top 10 most populous countries in the year 2000 as a horizontal bar chart, using a React component structure with D3 v5 for data processing and SVG rendering. The code downloads CSV data via `d3.csv`, parses the population column, and sorts to select the top 10 countries. React renders SVG elements including axes (`AxisBottom`, `AxisLeft`) and rectangle marks (`Marks`), with D3’s `scaleBand` and `scaleLinear` mapping countries and population values, and a tooltip showing formatted population via `d3.format`.

AI-generated description