🌍 Public
Viewing a saved revision (read-only)
27a1fd5f52c2478984d2b07ab18d9146
Tutorial 4
This animated bubble chart explores the relationship between horsepower, torque, and highway MPG across 31 car makes. Each circle is positioned by horsepower and torque on the axes, while its radius encodes highway MPG and its color distinguishes the brand using a color scale built with `d3.scaleOrdinal` and `d3.interpolateTurbo`. Interactive tooltips, enabled through mouseover and mousemove events, display the car make. The visualization, rendered in SVG with D3 v7, includes axis labels, a size legend for MPG values, and a color legend for makes.
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.