activity6 question 9
✓ Published0🌍 Public
This bubble chart maps US cities by population on the x-axis, area on the y-axis, and GDP as bubble size. It uses D3’s `scaleLinear` for axes and bubble scaling, `scaleOrdinal` with `interpolateTurbo` for city colors, and `axisBottom` and `axisLeft` for tick marks. A tooltip displays city name and GDP on hover, while a legend with circles and dashed lines shows GDP values. Data is loaded from a local CSV via `d3.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