🌍 Public
Viewing a saved revision (read-only)
d2864140d2054cbc8544aca6bc184d71
Tutorial 4
This interactive bubble chart visualizes the relationship between average horsepower, torque, and highway MPG across 31 car makes, with bubble size encoding fuel efficiency and color distinguishing brands. Built with d3.v7, the SVG visualization includes hover tooltips showing make names, a legend for MPG values, and a color key for makes. It reads data from a CSV file using d3.csv, employs d3.scaleLinear for axes and bubble sizing, d3.scaleOrdinal with interpolateTurbo for color assignment, and renders circles with mouse event handlers for interactive tooltips.
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.