Scatter Plot with Menus
This interactive scatter plot visualizes the Auto MPG dataset from the UCI Machine Learning Repository, showing relationships between different car attributes. Dropdown menus let users select which columns map to the X and Y axes, updating the visualization dynamically. Built with D3 v5, the code uses d3.scaleLinear for axes, d3.axisLeft and d3.axisBottom for tick marks, and a custom dropdownMenu component with animated circle transitions via d3.transition over a 2-second duration. Each data point appears as a red circle at 10-pixel radius, with SVG rendering and axis labels.
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.