Activity6_Q4
✓ Published0🌍 Public
This interactive bubble chart visualizes the relationship between healthcare spending (in USD) and life expectancy across several countries from 1970 to 1974. The visualization uses D3 v7 to render SVG circles, with bubble size proportionally mapped to spending values and color assigned per country via an ordinal scale with an interpolated Turbo colormap. A custom tooltip displays precise data on hover. The chart includes axis labels, bubble size legends, and a country color legend. Data is loaded from a local CSV file and rendered with animation-ready SVG elements.
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