Actvity6_task1
✓ Published1🌍 Public
This example shows a horizontal bar chart of 2020 population estimates for 30 countries, using SVG rectangles scaled by population values. The visualization loads CSV data from a GitHub repository via `d3.csv`, processes it with a row conversion function, and renders React components. The code uses D3 v5 scale functions (`scaleBand`, `scaleLinear`), `d3.format` for tick labeling (converting values to billions), and custom axis components that generate SVG tick marks and text labels.
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