🌍 Public
Viewing a saved revision (read-only)
3cc70e2d7b004c289ccf901d31e8a1ae
activity 6_Task 1
This visualization displays population data for 30 countries in 2020 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. The chart uses React to render SVG elements, with D3 v5 providing the scale functions (`scaleBand`, `scaleLinear`) and CSV data loading via `d3.csv`. Data is sourced from a GitHub-hosted CSV file, formatted with the `d3.format` function to abbreviate large numbers. The gradient bars are colored light green, and hovering reveals population values through native SVG tooltips.
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.