🌍 Public
Scatter Plot with Menus
This interactive scatter plot explores the Auto MPG dataset from the UCI Machine Learning Repository. Dropdown menus let the user dynamically choose which car attributes map to the x-axis, y-axis, and color categories, using `dropdownMenu` to re-render the visualization. Built with D3 v5, the `scatterPlot` module animates circles to their new positions over a two-second transition, scaling axes with `d3.scaleLinear` and `d3.axisLeft`/`d3.axisBottom`, while a separate `colorLegend` displays the categorical color scale.
AI-generated descriptionThis scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set. The user can select which columns map to X and Y using dropdown menus.
MIT Licensed
Comments
Sign in to join the discussion.