Skip to main content
100%

Activity 6_Task 1

✓ Published1🌍 Public
Nnikhilthoutu24@gmail.com
Last edited Apr 5, 2025
Created on Apr 1, 2025
Forked from Hello VizHub

This visualization displays the population of 30 countries in 2020 as a horizontal bar chart. The chart is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded from a remote CSV file using D3’s `csv` function, and population values are multiplied by 1000. The SVG rendering uses custom React components for axes and marks, with tooltips formatted using D3’s `format` function to abbreviate large numbers (e.g., “1.23B”).

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes