🌍 Public
Viewing a saved revision (read-only)
65742e445cd34161ae42ec31fb92cde2
Scatter Plot with Menus
This interactive scatter plot lets users explore the relationship between any two numeric columns from the automotive dataset. Two dropdown menus, built with a custom `dropdownMenu` function, independently select the variables for the x and y axes, triggering a re-render of the chart. The core visualization is rendered in SVG, using D3 v5’s `scaleLinear`, `axisBottom`, and `axisLeft` APIs to construct the coordinate system and gridlines. Each data point animates from the center to its target position using `transition().duration(1000)`, creating a smooth visual update when menu selections change.
AI-generated description