🌍 Public
Viewing a saved revision (read-only)
bcd2fdb1ffae4693b9348564c973d141
Assignment8-task4
This interactive bubble chart shows the correlation between average horsepower, torque, and highway MPG for ten Toyota models, with bubble size encoding MPG and color distinguishing vehicle make. The visualization uses D3.js v7 with SVG rendering and includes hover tooltips displaying the make name. The code employs d3.scaleLinear for axes and bubble sizing, d3.scaleOrdinal with d3.interpolateTurbo for color mapping, and mouse event handlers for tooltip interactivity. Data comes from the T4BC.csv file, and the chart features a legend illustrating MPG value scaling.
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.