activity6_q9
✓ Published0🌍 Public
A bubble chart maps population on the x-axis, area on the y-axis, and GDP to bubble size and color for 25 US cities. Each city’s bubble uses a distinct color from the `d3.interpolateTurbo` scale and is positioned using `d3.scaleLinear`. Hovering reveals a tooltip with city name and GDP. A legend displays GDP values, with circle sizes corresponding to the `z` scale. Data comes from `bubblechart.csv`.
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