Activity6_Task 1
✓ Published0🌍 Public
This horizontal bar chart displays the top 30 countries by 2020 population, with country names on the y-axis and population values along the x-axis. The visualization uses React and D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the numerical x-axis. Data loads asynchronously from a GitHub-hosted CSV via `d3.csv`, and the bars render as SVG `<rect>` elements with tooltips formatted using `d3.format`.
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