🌍 Public
Viewing a saved revision (read-only)
ea89ea0d24d54dd0babe438c6f70a390
Activity6_Task1
This horizontal bar chart displays the 2020 populations of the top 30 countries from a GitHub-hosted CSV dataset. React components render SVG rectangles whose widths are scaled by d3.scaleLinear, while d3.scaleBand positions each country on the y-axis. The code uses d3.csv for data loading, d3.format for tick labels, and the AxisBottom and AxisLeft components to draw the chart’s axes.
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.