Ass8_Question4
✓ Published0🌍 Public
This example visualizes the prevalence of AIDS in six African countries using a bubble chart, plotting the number of individuals living with AIDS against the year. Each bubble’s size represents the number of new diagnoses, and its color corresponds to the country via a custom color scale, with a legend for both size and color. The chart is built using D3 v7, loading CSV data from a GitHub gist, and employs `d3.scaleLinear` for positioning and radius, `d3.axisBottom` and `d3.axisLeft` for axes, and SVG circles for rendering.
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