🌍 Public
Viewing a saved revision (read-only)
38e2813ef08848078f49ccd91fc0bd7f
Activity6_Task4
This bubble chart visualizes the correlation between average horsepower, torque, and highway MPG across car makes from the bubblechart.csv dataset. Each circle’s x-position encodes horsepower, y-position encodes torque, and radius encodes highway MPG, while color distinguishes car makes. Built with D3.js v7 and rendered as SVG, the chart includes animated mouseover tooltips using D3’s selection and event handling, plus a legend with circle sizes for MPG values and color swatches for each make. The code uses d3.scaleLinear, d3.scaleOrdinal, d3.axisBottom, and d3.axisLeft.
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.