Activity6_Task4_Question4
✓ Published0🌍 Public
This interactive bubble chart from VizHub visualizes the correlation between car horsepower, MPG, and weight using data from a local cars.csv file. Each bubble’s x-position maps to horsepower, y-position to MPG, and radius to vehicle weight, rendered as SVG circles with tooltips. Built with D3 v7, it uses `d3.scaleLinear` for axes and bubble sizing, `d3.axisBottom` and `d3.axisLeft` for scales, and mouse event handlers for the tooltip. The chart animates opacity changes on hover, with black stroke outlines and skyblue fills.
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.
MIT Licensed