Skip to main content
100%

activity 6_Q1

✓ Published0🌍 Public
SSrihith Reddy Gaddam
Last edited Apr 26, 2025
Created on Apr 26, 2025
Forked from Hello VizHub

A horizontal bar chart displays the top 30 countries by 2020 population, sorted in descending order. The chart uses React components with D3 v7 scales (d3.scaleLinear and d3.scaleBand) to map population values and country names to SVG rectangles. Data is fetched from a CSV file via d3.csv, with a fallback dataset if the fetch fails. Axes show population in millions, and the bars use a teal fill with rounded corners.

AI-generated description
MIT Licensed

Similar vizzes