Skip to main content
100%

Activity-6_task-1

✓ Published1🌍 Public
Ssiddhartha gurram
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population estimates for the top 30 countries in 2020, with a green bar for each country and a light blue axis. It uses React to render an SVG, with D3 v5’s `scaleBand` and `scaleLinear` for positioning and a formatter that converts large numbers into billions. The data is loaded via `csv` from a gist URL, and tooltips display the formatted population value on hover.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes