🌍 Public
Viewing a saved revision (read-only)
3f838fa6d4854a9681e130912aaf3a98
Fork of Hello VizHub
This D3.js v7 bubble chart visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes. Each circle’s x-position maps to horsepower, y-position to torque, and radius to highway MPG, while color distinguishes makes using `d3.scaleOrdinal` with `d3.interpolateTurbo`. The code reads data from a CSV via `d3.csv`, renders an SVG with axes and labels, and includes an interactive tooltip on `mouseover`, `mousemove`, and `mouseleave` events. A legend communicates bubble size and color 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.