🌍 Public
Viewing a saved revision (read-only)
c44e6fb3ccca4da9a86f4ab3a140465d
Scatter Plot with Menus
This interactive scatter plot from D3 v5 visualizes the Auto MPG dataset from the UCI Machine Learning Repository, displaying car attributes as red circles. Dropdown menus let the user choose which numeric columns map to the X and Y axes. The code builds the scatter plot using `scaleLinear`, `axisLeft`, `axisBottom`, and a custom `scatterPlot` function. Animated transitions, created with `transition().duration(2000).delay()`, smoothly move points between positions when the axis selection changes.
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.