Skip to main content
100%

Cars Scatter Plot with menus

✓ Published2🌍 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
MIT Licensed

Similar vizzes