Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Tutorial1

Public visualization

Viewing a saved revision (read-only)

941ed42154014aeea83105cd02596a54

Activity6_Tutorial1

0 stars1🌍 Public
SSurya Tejas Reddy Nimma
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Hello VizHub

This example shows a horizontal bar chart of the top 30 countries by 2020 population, ranked from largest to smallest. The bars are rendered as SVG rectangles colored light green, with a linear x-axis scaled to the population values and a banded y-axis listing country names. The chart uses D3 version 7, specifically `d3.axisBottom` and `d3.axisLeft` for axes, `d3.scaleLinear` and `d3.scaleBand` for scaling, and loads data from a CSV file using `d3.csv`.

AI-generated description