Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question4

Public visualization

Viewing a saved revision (read-only)

d9d23e8ce3d843a5a56feac6790eaf10

Activity6_Question4

0 stars0🌍 Public
AAreeba Hassan
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.