🌍 Public
Viewing a saved revision (read-only)
6cc030e008724ac8bb47b14e22c9b669
Activity6_Task4
This bubble chart shows the correlation between average horsepower, average torque, and highway MPG for different car makes. Each circle’s position maps horsepower (x-axis) and torque (y-axis), while its radius encodes highway MPG and its color distinguishes the car manufacturer. Built with D3 v7, the visualization uses `d3.scaleLinear` for axes and bubble size, `d3.scaleOrdinal` for color assignment, and `d3.interpolateTurbo` for the color palette. Interactive tooltips appear on mouseover via custom event handlers, and the chart includes a legend for bubble size and categorical colors.
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.