Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity 6_Task 1

Public visualization

Viewing a saved revision (read-only)

23b6b8c8b56741df9ca74b832e20e0ad

Fork of Activity 6_Task 1

0 stars0🌍 Public
Nnavyabade05@gmail.com
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Activity 6_Taskl 1

This bar chart displays the 2020 population for the top 30 countries, sorted along a horizontal axis with population values and a vertical axis listing country names. The visualization uses D3 v7 to load CSV data, create a linear x-scale and band y-scale, and render light-green SVG rectangles. Axis components are built with `d3.axisBottom` and `d3.axisLeft`, with tick formatting that converts values to a concise billion/million notation (e.g., "1.2B"). The chart is generated entirely in SVG, with margins and scaling calculated in JavaScript.

AI-generated description