Skip to main content
100%

Activity6_Task1

✓ Published2🌍 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
MIT Licensed

Similar vizzes