🌍 Public
Viewing a saved revision (read-only)
9db64cc3e1554285bceeb2391d894e3f
Task4
This visualization shows the relationship between average horsepower, torque, and highway MPG for various car makes. Each bubble represents a car brand, positioned by horsepower on the x-axis and torque on the y-axis, with bubble size encoding highway fuel efficiency and color distinguishing makes. The code loads data from a CSV file using d3.csv, applies linear scales to both axes and a sqrt scale for bubble radius, and renders circles as SVG elements. Interactive tooltips appear on hover using D3 event listeners, and axis labels and a title are generated with SVG text elements.
AI-generated description