🌍 Public
Viewing a saved revision (read-only)
7a17024ae0d744baab593ef738bac66f
Activity-6 Task-1
This chart displays the top 30 countries by 2020 population as a horizontal bar chart, with country names on the y-axis and population values on the x-axis in billions. The visualization is rendered as SVG using React and D3 v5, employing `scaleBand` for the categorical axis and `scaleLinear` for the quantitative scale. The code fetches CSV data from a remote URL, formats population values with `d3.format`, and includes basic interactivity through SVG `<title>` tooltips showing exact values.
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.