Iris Scatter Plot 0516017
This interactive scatter plot visualizes the Iris dataset, showing correlations between selected measurements for three flower species. Users choose the x- and y-axis variables from dropdown menus, which re-renders the SVG using d3.csv data, d3.scaleLinear, and d3.axisBottom/axisLeft. Points are colored via d3.scaleOrdinal with semi-transparent red, green, and blue fills, including a legend. The code uses d3.select and d3.selectAll to manage updates and append text labels for axes, title, and legend.