Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task1_Q2

Public visualization

Task1_Q2

0 stars0🌍 Public
GGunna,Praneeth Reddy
Last edited Oct 29, 2025
Created on Oct 29, 2025
Forked from Task1_Q1

This chart displays the populations of the top 20 countries in 2010 as horizontal bars, with the D3.js `csv` module loading data from a raw GitHub dataset. The React component uses `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas, with `AxisBottom` and `AxisLeft` rendering the tick marks. The bar marks, colored light green, include a native SVG `<title>` tooltip that formats the population values using D3's `format('.2s')` function.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed