Activity6Task1
✓ Published1🌍 Public
This example presents a horizontal bar chart of population data for the top 30 countries in 2020, sourced from a GitHub-hosted CSV. The visualization is built with React and rendered as an SVG, using D3 v5's `scaleBand`, `scaleLinear`, and `csv` functions to parse data and position the bars. The chart employs custom axis components for bottom and left ticks, with bar tooltips formatted in millions using D3's `format` function. The code demonstrates modular ES6 imports within a VizHub environment.
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