π Public
activity8-task4
This interactive bubble chart visualizes the correlation between average horsepower, torque, and highway MPG for various car makes. Each circle's position encodes horsepower on the x-axis and torque on the y-axis, while its size represents highway MPG and its color indicates the car brand. The D3.js v7 example loads data from a CSV file and renders the visualization as an SVG. It includes interactive tooltips on mouseover that display the car make, along with custom legends for both bubble size and categorical color assignments using `d3.scaleOrdinal`.
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








Comments
Sign in to join the discussion.