Skip to main content
100%

Activity 6_Task 1

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

A horizontal bar chart displays the 2020 populations of 30 countries, sorted by country name, using SVG rendered via React. The chart loads CSV data from a GitHub gist, multiplies the 2020 value by 1000, and maps it to a linear scale, while countries are positioned with a band scale. Axes are built with custom React components (AxisBottom, AxisLeft), and a marks component renders each bar with a native tooltip. The code uses d3.scaleBand, d3.scaleLinear, and d3.format for tick labels.

AI-generated description
MIT Licensed

Similar vizzes