Skip to main content
100%

Activity6_Task1

✓ Published0🌍 Public
Ggnanendra097@gmail.com
Last edited Apr 5, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This visualization shows the top 30 countries by population in 2020 using a horizontal bar chart built with React and D3 v5. Each bar’s length encodes population via a linear scale (`d3.scaleLinear`), while countries are positioned along a band scale (`d3.scaleBand`). The code fetches CSV data from a GitHub repository, formats population values, and renders SVG rectangles with tooltips. Custom React components (`AxisBottom`, `AxisLeft`, `Marks`) handle axes and marks, with axis tick formatting converting values to billions using `d3.format`.

AI-generated description

Activity 6, TASK 1

MIT Licensed

Similar vizzes