🌍 Public
Viewing a saved revision (read-only)
dbd487e4ad664a2480c08669a63a8031
activity 6_Task 1
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000, with green bars arranged in descending order by population. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` managing the axis scales and `csv` loading the dataset from a GitHub-hosted CSV file. Interactive tooltips appear on hover, displaying each value formatted in billions with D3’s `format` function.
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.