Activity6_Question3
✓ Published0🌍 Public
This scatter plot visualizes the relationship between pollution levels, life expectancy, and respiratory disease rates across fictional cities. Circles are color-coded by pollution severity (green, orange, red) with radii scaled to respiratory disease prevalence. The visualization uses d3.scaleLinear for x, y, and radius scales, d3.axisBottom and d3.axisLeft for axes, and appends SVG circles via d3.selectAll. Data is hardcoded in the script rather than loaded from the provided CSV file, with axis labels for pollution level.
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