π Public
question 3
This scatter plot shows the relationship between horsepower and highway MPG for vehicles, with each point's shape encoding the vehicle make. The visualization uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `symbol` to map data to positions and shapes. Axes are rendered with `axisLeft` and `axisBottom`, while a custom `shapeLegend` displays the categorical mapping. The data loads from a CSV hosted on GitHub, and the plot fills the browser window, updating dynamically as new data arrives.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.