Activity6_Q1.2
✓ Published0🌍 Public
A horizontal bar chart displays the top 20 countries by 2010 population, sourced from a CSV file loaded with `d3.csv`. React renders SVG rectangles whose widths are scaled linearly by population via `scaleLinear`, while `scaleBand` positions categorical country labels on the y-axis. Axis components use D3 tick formatting with `.2s` to abbreviate billions, and each bar includes a native SVG `<title>` tooltip showing the formatted value.
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