activity4_to
✓ Published0🌍 Public
A bubble chart visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes, with circle size encoding MPG and color distinguishing brands. The D3.js v7 code loads a CSV, applies linear scales to axes, and uses an ordinal color scale with interpolateTurbo for the legend. Interactive tooltips appear on mouseover, and hover events are managed through transition-based show, move, and hide functions under an 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.
MIT Licensed