🌍 Public
Viewing a saved revision (read-only)
6dd84fdf8ba8468fa3f75d11fbc72a59
activity 6_Task 1
This visualization shows a horizontal bar chart of the top 30 countries by 2020 population, with country names on the y-axis and population counts on the x-axis. The code uses React components to render SVG elements, while D3 v5 handles data loading via `d3.csv` and scales through `d3.scaleBand` and `d3.scaleLinear`. The data comes from a GitHub-hosted CSV file, and the bars are light green with axes styled in blue and tick labels. Tooltips provide formatted population values on hover.
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.