🌍 Public
Viewing a saved revision (read-only)
faac467c46d54ead985762da08bf20e5
Activity 6_Task 1
This example displays a horizontal bar chart of population data for 30 countries in 2020, colored orange with black axes and axis labels. The visualization uses React with D3 v5 APIs including `scaleBand` and `scaleLinear` for scales, `csv` for data loading, and `format` for tick formatting. Data is fetched from a GitHub-hosted CSV file and rendered as SVG rectangles, with each bar showing a tooltip 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.