Activity6_tutorial-1
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing the 2020 populations of 30 countries, with each bar’s length representing population size and a green fill for visual distinction. The visualization is built with React and D3 v5, using `scaleBand` for categorical y-axis placement and `scaleLinear` for the numeric x-axis. The chart is rendered as an SVG, with axes drawn via custom components (`AxisBottom`, `AxisLeft`) and data loaded from a remote CSV file via D3’s `csv` 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