Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Q1

Public visualization

Activity6_Q1

0 stars1🌍 Public
Hharinihari6791@gmail.com
Last edited Apr 3, 2025
Created on Apr 3, 2025
Forked from Activity6_Task 1

A horizontal bar chart displays the top 20 countries by population in 2010, using green bars with value labels and a formatted axis. The chart loads CSV data from a GitHub repository via `d3.csv`, sorts and slices the dataset, then builds SVG rectangles and text elements with `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisLeft`/`d3.axisBottom` in d3.v7. Hover effects change bar color, while the x-axis uses `d3.format('.2s')` for compact population notation.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed