Activity6_Task4
✓ Published0🌍 Public
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 descriptionMIT Licensed