🌍 Public
Activity6_Question3(6)
This example shows the relationship between engine power and engine torque for different car makes, using symbol shapes to distinguish each manufacturer. The scatter plot encodes engine power on the x-axis, engine torque on the y-axis, and maps each make to a distinct symbol via `scaleOrdinal` with `symbolsFill`. A custom legend displays the shape-to-make mapping. The visualization includes axis labels generated with the `axes` module using `axisLeft` and `axisBottom`. Data comes from an external CSV file loaded with `csvParse`, and rendering updates dynamically via D3 v7’s join pattern.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.