🌍 Public
Viewing a saved revision (read-only)
8d66acb01f5841f0af69c3fa3b5af06f
activity 6_Task 1
A horizontal bar chart displays 2020 population figures for countries, with bars extending from a shared left edge to lengths proportional to population values. The visualization uses React to render SVG elements, while D3 v6 scales and axes handle positioning and tick formatting, converting large numbers into abbreviated labels like "1.2B". Data is loaded asynchronously from a GitHub-hosted CSV file via D3's `csv` function. Interactive tooltips appear on hover through SVG `<title>` elements, revealing exact population values.
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.