Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot with menus

Public visualization

Viewing a saved revision (read-only)

4992631f216b4800ac6bcbdad3e723d5

Cars Scatter Plot with menus

0 stars2🌍 Public
Jjay
Last edited Feb 20, 2020
Created on Feb 10, 2020
Forked from Making a bar chart

This visualization displays the relationship between horsepower and weight for cars from the auto-mpg dataset, with each car represented by a red semi-transparent circle. Users can select different columns from a dropdown menu to change the variable of interest. The scatter plot uses D3 v5’s scaleLinear, axisBottom, axisLeft, and extent functions to compute scales and render SVG axes. The dropdown menu is implemented via a reusable function that appends select elements and handles change events, while the data is loaded as CSV and parsed to numeric values.

AI-generated description