Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1

Public visualization

Viewing a saved revision (read-only)

907ab3e7491a4874b19647f877482cda

Activity6_Task1

0 stars2🌍 Public
VVidya Lakshmi Chitturi
Last edited Apr 2, 2025
Created on Mar 31, 2025
Forked from Activity6_Task1

A horizontal bar chart displays the populations of the top 30 countries in 2020, sorted from largest to smallest. Built with React and D3 v7, it renders SVG bars using `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The data is fetched from a CSV file via `d3.csvParse`, with fallback sources and sample data (China, India, United States, Indonesia, Pakistan) in case the URLs fail. The chart includes axes with custom tick formatting, labels, and a border.

AI-generated description