Activity 6_Q 4
A bubble chart visualizes the correlation between horsepower, weight, and MPG for the first 27 vehicles from the auto-mpg dataset. Each circle’s position encodes its horsepower and weight, while its radius and color represent MPG and car name, respectively, using a turbo color scale. The SVG rendering includes axes, labels, a tooltip on hover, and a legend, all built with D3 v7’s scales, axis generators, and event handlers.