🌍 Public
Viewing a saved revision (read-only)
422971f52d924450b27f5ac5803d39c8
Task8_Q4_9
This bubble chart visualizes the correlation between housing costs, cost of living, and safety across 40 cities from the expensessafety.csv dataset. Each circle’s position encodes housing and cost of living on the x- and y-axes, while its radius represents the safety score using a linear scale. The chart uses d3.csv to load data, d3.scaleLinear for positioning and sizing, and d3.scaleOrdinal with interpolateTurbo to assign distinct colors to each city. Interactive tooltips appear on mouseover, and a legend with reference circles explains the safety radius mapping.
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.