Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

1b6834b5d67b4c03b57214852b4403eb

Cars Scatter Plot

0 stars1🌍 Public
RRyan Fleming
Last edited Nov 7, 2018
Created on Oct 2, 2018
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for cars from the UCI Machine Learning Repository’s Auto MPG dataset, with each point colored by the car’s country of origin (USA, Japan, or Germany). Clicking a country in the color legend filters the points by toggling their opacity, highlighting cars from that origin. Built with D3 v5, the visualization uses `scaleLinear`, `axisBottom`, `axisLeft`, and `scaleOrdinal` to render SVG axes and circles, while the legend relies on `d3.legendColor` for a horizontal color scale.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.