Scatter Plot with Menus
This scatter plot displays the relationship between car weight and various selectable attributes, including horsepower, from the auto-mpg dataset. A dropdown menu, built using D3's select and append methods, lets users switch the x-axis column, triggering a re-render. The visualization uses D3's scaleLinear, axisBottom, axisLeft, and extent functions for scaling and axes, rendering circles as SVG elements within a chart that includes grid lines and labeled axes.