Reusable Scatter Plot
This reusable scatter plot visualizes the Iris flower dataset, showing petal width versus sepal length as colored circles representing species. The chart cycles through all four attribute combinations on the x-axis every few seconds using setInterval, with a legend identifying yellow, violet, and orange markers. Built with D3 v6, it uses d3.csv to load data, d3.scaleLinear for axes, and dynamically updates the scatterPlot function’s xValue property. The SVG rendering includes axis labels, a title, and manually positioned legend squares and text.