Skip to main content
100%

Activity6_Task4

✓ Published0🌍 Public
Tthoutunikhitha@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Activity6_Q-3

A scatter plot visualizes the relationship between horsepower and acceleration for ten cars, encoding the categorical model field (A, B, C) with three distinct SVG shapes: circles in steelblue for model A, green squares for model B, and orange triangles for model C. The chart uses linear scales for both axes with labeled ticks, rendering all marks through manually appended SVG primitives. The code defines the dataset inline and employs D3 v7 methods like `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.path` to construct the shapes and axes.

AI-generated description
MIT Licensed

Similar vizzes