🌍 Public
Viewing a saved revision (read-only)
75f33a23c47f4ab796d5956dffca0487
Activity6_Task4_Tutorial
This example visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes using a bubble chart. Each circle’s position encodes horsepower (x-axis) and torque (y-axis), while its radius scales with highway MPG and its color maps to the car make via a categorical scale. The visualization uses d3.csv to load the data, d3.scaleLinear for axes and bubble size, and d3.scaleOrdinal with d3.interpolateTurbo for colors, rendering in SVG. Interactive tooltips appear on hover, and a legend explains both size and color encodings.
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.