🌍 Public
Viewing a saved revision (read-only)
17fecde12a8644cb834f639ca31f3fae
QUESTION-1(TASK-1)
A horizontal bar chart displays the top 10 countries by population in the year 2000, with bars sorted in descending order. The visualization loads CSV data via `d3.csv`, transforms population values by multiplying by 1,000, and renders SVG rectangles using React components. D3 scales (`scaleBand`, `scaleLinear`) position the bars, while `d3.format` abbreviates axis tick labels (e.g., converting billions to "B"). The chart includes styled axes with blue tick lines and green bars, using a Poppins font.
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.