Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6(Questions)1.2

Public visualization

Viewing a saved revision (read-only)

fb523ebc8a8d438b96f9d974d05eeddf

Activity-6(Questions)1.2

0 stars0🌍 Public
Kkandulasunny17@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024

This visualization displays the populations of 20 countries in 2010 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. The chart uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` handling the scales, and custom `AxisBottom` and `AxisLeft` components drawing the ticks. Data is loaded via D3’s `csv` from a GitHub-hosted CSV file, and population values are formatted using D3’s `format('.2s')` to show abbreviations like "B" for billions.

AI-generated description