🌍 Public
Viewing a saved revision (read-only)
3e0a22d81f2843fc8e5a62b62e09641e
Activity6_Q 1.1
This visualization displays the population of ten countries in the year 2000 as a horizontal bar chart. The code uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` mapping country names and population values to positions. Data is loaded as CSV from a GitHub repository, and population values are formatted using D3’s `format` function, abbreviating large numbers with labels like "B" for billions.
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.