Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6_Q1.2

Public visualization

Viewing a saved revision (read-only)

9edee8180a8e4d8ab5de0f84520cab83

Activity-6_Q1.2

0 stars0🌍 Public
Tthoutunikhitha@gmail.com
Last edited Apr 4, 2025
Created on Apr 4, 2025
Forked from Activity-6_Q1.1

A horizontal bar chart displays the populations of 20 countries in 2010, sorted alphabetically by country name. The bars are rendered as SVG rectangles using React components, with D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Population values are loaded from a CSV file via `d3.csv`, formatted with `d3.format` to abbreviate large numbers (e.g., "1.2B"), and each bar includes a tooltip showing the exact value.

AI-generated description