🌍 Public
Viewing a saved revision (read-only)
9888a4c84e494f6e91644d9bdfa89acc
Activity6_Question4
This interactive bubble chart visualizes the correlation between battery life, camera megapixels, and weight for 20 smartphone brands. Each bubble’s x-position maps battery life, y-position maps camera resolution, and its radius encodes weight. The visualization uses d3.csv to load data, d3.scaleLinear for axes and bubble sizing, and d3.scaleOrdinal with d3.interpolateTurbo to assign brand colors. Hovering triggers a custom tooltip showing the brand name, while red circles and lines provide legends for weight and color-coded brands.
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.