Activity6Task4
✓ Published0🌍 Public
A bubble chart displays correlations between average horsepower, torque, and highway MPG for various car makes, using D3.js. The visualization uses an SVG with circles whose size encodes MPG, while color distinguishes vehicle brands. The code reads data from a CSV file, applies linear scales for axes and bubble radius, and maps manufacturer names to a turquoise color scheme using d3.scaleOrdinal. Interactive tooltips appear on mouseover, showing the car make. A legend displays both the bubble size scale for MPG and color samples for each marque.
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