🌍 Public
Viewing a saved revision (read-only)
a34ab3abea6349ddb4e8c8c985337c6d
activity 6_Task 1
This interactive bar chart displays the 2020 population estimates for 30 countries, using horizontal bars to compare values. Built with React and D3 v5, the visualization renders as an SVG. It loads data from a GitHub-hosted CSV, utilizing `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and D3's `format` function to abbreviate population values (e.g., "1.2B"). Tooltips provide the exact formatted population for each bar.
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.