Activity6_Question4
✓ Published0🌍 Public
This interactive bubble chart visualizes the relationship between healthcare spending (in USD) and life expectancy across several countries from 1970 to 1974. Each circle’s size encodes spending amount, while its color distinguishes the country, with tooltips revealing exact values on hover. Built with D3 v7, it uses `d3.csv` to load data, `scaleLinear` for axes and bubble sizing, `scaleOrdinal` for color mapping, and `d3.axisBottom`/`axisLeft` for axes. The chart includes a legend for bubble sizes and country categories, rendered as SVG with animated tooltip transitions.
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