Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6

Public visualization

Activity 6

0 stars1🌍 Public
Aa9.hemraj@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025

This horizontal bar chart ranks the 30 most populous countries by their 2020 population estimates, with bars extending from left to right and the y-axis ordered alphabetically by country name. The visualization uses React components to render SVG elements, with D3’s `scaleBand` and `scaleLinear` handling the positional encodings, while axis components manually generate ticks and labels. Population values are formatted using D3’s `format` function, converting values to billions with an ‘B’ suffix, and the source data is loaded via `d3.csv` from a GitHub-hosted CSV file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed