🌍 Public
Viewing a saved revision (read-only)
5d42abda580d4c4eaff70518d1ca9b5a
Man SDV Task 4
This visualization shows the correlation between average horsepower, torque, and highway MPG for 31 car makes, with each bubble positioned by horsepower (x-axis) and torque (y-axis), while its size encodes highway MPG. A tooltip appears on hover to reveal the car make. The code uses D3.js v7 with SVG, employing `d3.scaleLinear` for axes and bubble sizing, `d3.scaleOrdinal` with `d3.interpolateTurbo` for color encoding, and hover event handlers for the tooltip. Data comes from an external CSV file, and a legend displays both bubble size values and color-coded 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.