Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Q-3

Public visualization

Viewing a saved revision (read-only)

1455ee1efa8d436982a69ff9a9a7295a

Activity6_Q-3

0 stars1🌍 Public
Tthoutunikhitha@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Activity6_Task 3.2

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 description