🌍 Public
Viewing a saved revision (read-only)
52dcc242acdb401fb59608eede984964
activity 6_Task 1
This visualization shows the population of 30 countries in 2020 as a horizontal bar chart. The React-based code uses D3 v5 to load CSV data, and employs `scaleBand` and `scaleLinear` to map country names and population values to screen coordinates. The SVG rendering includes custom axis components and rectangle marks, with tooltips showing formatted population values. Data originates from a GitHub-hosted CSV file, and the chart is rendered entirely with SVG elements.
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.