Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ACTIVITY_6_TASK1

Public visualization

ACTIVITY_6_TASK1

0 stars1🌍 Public
Ssravani1969@gmail.com
Last edited Mar 28, 2025
Created on Mar 28, 2025

This horizontal bar chart compares the 2020 populations of the top 30 countries, with each bar’s length proportional to population and the y-axis ordered by country name. Using D3 v7, the code applies a linear scale for the population axis and a band scale for countries, rendering the bars as SVG rectangles. Axis formatting converts large numbers to billions via `d3.format`, while data is fetched from a remote CSV file. The chart’s axes include clear labels for “Countries” and “POPULATION-2020”.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed