activity 6_Task 1
✓ Published0🌍 Public
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.
MIT Licensed