🌍 Public
Viewing a saved revision (read-only)
d9d23e8ce3d843a5a56feac6790eaf10
Activity6_Question4
This bubble chart compares violent crime rates and aggravated assault rates across U.S. cities, with bubble size encoding population and distinct colors differentiating cities. The visualization uses d3.csv to load the dataset, d3.scaleLinear for positioning and sizing, and d3.scaleOrdinal with d3.schemeTableau10 for color assignment. Interactive tooltips appear on mouseover, displaying city name, population, and violent crime count. SVG circles are rendered with D3 v7, and a size legend shows population values of 20,000, 50,000, and 80,000.
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.