Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Task 1

Public visualization

Activity 6_Task 1

0 stars2🌍 Public
MManojsai Bangaru
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Hello VizHub

This horizontal bar chart displays the populations of the top 30 countries in the year 2000, sorted by country name. The visualization uses D3.js version 7 to create an SVG bar chart with light green bars, a linear x-scale for population values, and a band y-scale for country names. The code imports data from a CSV file using d3.csv and constructs the chart with modular components for axes and marks. Axis labels are formatted using d3.format to display population values in billions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed