Activity6_Question4.9
✓ Published0🌍 Public
This example displays a bubble chart comparing GDP and average life expectancy across ten countries, with bubble size scaled to population and colors mapped to country-specific values. Built with D3 v6 and rendered as SVG, it uses `d3.csv` to load the dataset, `scaleLinear` and `scaleSqrt` for positioning and radius, and `d3.axisBottom`/`axisLeft` for axes. A custom legend lists each country with its corresponding color swatch, and labels identify the axes and chart title.
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