🌍 Public
Viewing a saved revision (read-only)
2841b83920c34a3a9766299b096a8827
task 4 tutorial
This example visualizes the correlation between average horsepower, torque, and highway MPG for various car makes using a bubble chart. Each bubble’s position reflects horsepower and torque, its size encodes highway MPG, and its color distinguishes car makes via a `d3.scaleOrdinal` with `d3.interpolateTurbo`. The chart includes axes, a size legend, and an interactive tooltip that appears on hover using mouse events. Data is loaded from a local CSV file with `d3.csv`, and rendering is done through SVG elements with D3 v7.
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.