Question-1.2 Task-1
✓ Published0🌍 Public
This horizontal bar chart displays the population of 20 countries in 2010, sorted by country name. The visualization uses React with D3.js scales and axes to render SVG rectangles, with bars sized proportionally to population values. The code imports D3’s `scaleBand`, `scaleLinear`, and `format` APIs, while loading data via `csv` from a GitHub-hosted CSV file. Tooltips show formatted population values using a custom tick format that shortens large numbers to 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.
MIT Licensed