🌍 Public
Viewing a saved revision (read-only)
35c0fead350a40b7b14987bb5ce6f743
Activity_6_Tutorial 4
This visualization shows the correlation between average horsepower, torque, and highway MPG for various car makes. Each bubble’s position encodes horsepower (x-axis) and torque (y-axis), while its radius represents highway MPG, scaled linearly via d3.scaleLinear. Color is mapped to car make using a d3.scaleOrdinal with interpolated turbo colors. The SVG includes axes with labels, a size legend for MPG, and a color legend for makes. Interactive tooltips appear on mouseover, showing the make, using d3 event handlers. Data is loaded from a CSV file and animated with D3 v7 transitions.
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.