Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6 Task 1

Public visualization

Viewing a saved revision (read-only)

67172260f70e4fa3a2f56e1c26d3c1eb

Activity-6 Task 1

0 stars0🌍 Public
NNithish Karanam
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This horizontal bar chart displays the top 30 countries by population in 2020, with bars extending from the left edge and a logarithmic-free linear scale for population values. The visualization uses D3 v7’s `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` APIs, rendering SVG rectangles via a data join. Light green bars represent each country, with a custom tick formatter converting numeric values to abbreviated formats like “B” for billions. Population data is loaded as CSV from GitHub and sorted descending before filtering to the top 30 entries.

AI-generated description