🌍 Public
Viewing a saved revision (read-only)
cb697919d6a74219914c4d5c1c239648
Activity-6_task-1
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.