Activity6_Q-3
✓ Published1🌍 Public
This scatter plot displays the relationship between horsepower and acceleration for ten cars, with each point’s shape and color indicating the car model (A, B, or C). The visualization uses D3.js v7 to map data to SVG shapes, with circles, squares, and triangles drawn using `d3.select`, `d3.scaleLinear`, and `d3.path`. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, and labeled via appended SVG text elements. The dataset is hardcoded in the script, and the plot is rendered entirely on an SVG canvas.
AI-generated descriptionMIT Licensed