Activity6-Question1
✓ Published3🌍 Public
This example displays a horizontal bar chart ranking ten countries by their 2020 population, using green bars on an SVG canvas. The chart includes labeled axes and a formatted tooltip for each bar. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `csv` to load data from a GitHub-hosted CSV file. Axis components and marks are rendered as separate ES6 modules, with population values converted from strings to numbers.
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