Viewing a saved revision (read-only)
f3543da5f8924d27bd9a02faaabbeb7e
Activity6_Tutorial_4
This bubble chart visualizes the relationship between average horsepower, torque, and highway MPG for various car makes, revealing that higher-performance vehicles tend to have lower fuel efficiency. Each circle represents a car manufacturer, with its x-position indicating horsepower, y-position indicating torque, and size scaled proportionally to highway MPG using `d3.scaleLinear`. The color of each bubble, assigned via `d3.scaleOrdinal` with `d3.interpolateTurbo`, distinguishes between makes. Hovering over a bubble triggers a tooltip displaying the make name. The chart includes a legend for bubble size values and uses the `d3` framework with SVG rendering.
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.