activity 6_Task 1
✓ Published1🌍 Public
This example shows a horizontal bar chart comparing the populations of the top 20 countries in 2010, with country names on the y-axis and population values on the x-axis. The data is loaded as CSV via `d3.csv` from a GitHub repository. React renders the SVG, while D3 v5 scales (`scaleBand` and `scaleLinear`), axes, and tick formatting (`format('.2s')`) handle the layout. Tooltips appear on hover using native SVG `<title>` elements.
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