Activity 7 Task 5
✓ Published0🌍 Public
This example shows the correlation between average horsepower, torque, and highway MPG across 31 car makes using a bubble chart. Each circle’s position encodes horsepower on the x-axis and torque on the y-axis, while its radius and color represent highway MPG and car make, respectively. The visualization includes interactive tooltips on mouseover and a legend for both bubble size and color categories. Built with D3.v7 and SVG, it uses `d3.scaleLinear` for axes and sizing, `d3.scaleOrdinal` with `d3.interpolateTurbo` for colors, 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