Skip to main content
Public

Share visualization

Loading preview…

Activity 6_Q1

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Activity 6_Q1

1
SSrihith Reddy Gaddam
Last edited Apr 27, 2025
Created on Apr 27, 2025
Forked from Activity 6_Task 1

This visualization shows the top 10 most populous countries in the year 2000 as a horizontal bar chart, using a React component structure with D3 v5 for data processing and SVG rendering. The code downloads CSV data via `d3.csv`, parses the population column, and sorts to select the top 10 countries. React renders SVG elements including axes (`AxisBottom`, `AxisLeft`) and rectangle marks (`Marks`), with D3’s `scaleBand` and `scaleLinear` mapping countries and population values, and a tooltip showing formatted population via `d3.format`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed