Cars Scatter Plot with Interactive Filtering
A scatter plot displays the relationship between horsepower and weight for cars from the auto-mpg dataset, with each point colored by the number of cylinders. Users click the interactive color legend to filter which cylinder groups remain visible. The visualization uses D3 v5 with SVG rendering, employing `scaleOrdinal` and `schemeSpectral` for color encoding, alongside `scaleLinear`, `axisBottom`, and `axisLeft` to construct the axes. A black background and opacity adjustments highlight the spectral color range across cylinder categories.
AI-generated descriptionThis is a fork of Curran's"Cars Scatter Plot", modified to add the number of cylinders each car has using color. The legend on the right is interactive. I found that a white background made the middle color spectrum hard to see with the opacity, so I opted for a black background.