Activity 6_Task-4
✓ Published0🌍 Public
This example uses D3 v7 to render an interactive bubble chart exploring the correlation between average horsepower, torque, and highway MPG across car brands. The SVG visualization plots each brand as a circle positioned by horsepower and torque, with circle size scaled to highway MPG and color encoded by car make via a custom ordinal scale. Users can hover over bubbles to see the brand name through a tooltip, and the chart includes a legend for MPG values and brand color mapping. The code imports D3 from UNPKG and loads data from a local CSV file.
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