🌍 Public
Viewing a saved revision (read-only)
377aa14b22dd48689289fd04c89031df
act8_task4
This visualization uses a bubble chart to show the correlation between average horsepower, torque, and highway MPG for various car makes, with bubble size encoding MPG and color distinguishing makes. The code leverages d3.v7 with an SVG rendering approach, using d3.csv to load data, d3.scaleLinear for positioning and sizing, and d3.scaleOrdinal with d3.interpolateTurbo for coloring. Interactive tooltips appear on mouseover via d3 event handling. A legend displays the MPG bubble-size scale and a color-coded list of car 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.