Activity-6_Task-1
✓ Published0🌍 Public
This horizontal bar chart displays the top 30 countries by population in 2020, using green bars sorted alphabetically with a tooltip showing the formatted population value. The visualization is built with React, uses d3.scaleBand for the y-axis, d3.scaleLinear for the x-axis, and d3.format to convert large numbers into billions. It loads population data via d3.csv from a GitHub-hosted CSV file and renders the chart as an SVG with custom axis components.
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