Cars Scatter Plot with menus
✓ Published2🌍 Public
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 descriptionMIT Licensed