Skip to main content
100%

ACTIVITY8

✓ Published0🌍 Public
Sshaiksajidali
Last edited Apr 10, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This interactive scatter plot ranks the top 30 countries by population in 2020, rendered as horizontal bars using SVG. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map country names and population values to screen positions, while custom `AxisBottom` and `AxisLeft` components generate tick marks. Data is loaded asynchronously from a CSV file via `d3.csv`, with population values formatted in billions using `d3.format`. A tooltip appears on hover, displaying each bar’s population in abbreviated form.

AI-generated description
MIT Licensed

Similar vizzes