Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot with Interactive Filtering

Public visualization

Viewing a saved revision (read-only)

8ba0709bee4544aeb6a6cf6522e4b2a2

Cars Scatter Plot with Interactive Filtering

1 star0🌍 Public
Ffloresh
Last edited Mar 14, 2019
Created on Oct 7, 2018

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 description

This 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.