Activity06 Q.1.1
✓ Published1🌍 Public
A horizontal bar chart displays the populations of ten countries in the year 2000, sorted by country name. The chart uses React and D3 v5, with SVG rendering. Population values are loaded from a remote CSV file and formatted using D3’s `format` function, converting values to billions. The bar lengths encode population via `d3.scaleLinear`, while country categories use `d3.scaleBand`.
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.
MIT Licensed