Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_question1

Public visualization

Viewing a saved revision (read-only)

11adf39fcc6344af9cc808d70778db6b

activity6_question1

0 stars0🌍 Public
Sshreshikaveerannagari@gmail.com
Last edited Apr 4, 2025
Created on Apr 1, 2025

This horizontal bar chart visualizes the population of the top 10 countries in the year 2000, with each bar’s length encoded by population value. A linear x-scale (`d3.scaleLinear`) handles the numeric axis with custom tick formatting that abbreviates millions as “B” for billions, while a band scale (`d3.scaleBand`) positions country labels on the y-axis. Light green rectangles are drawn using SVG `rect` elements. Data is loaded asynchronously from a GitHub-hosted CSV via `d3.csv`, and axes are rendered using `d3.axisBottom` and `d3.axisLeft`.

AI-generated description