Reusable Scatter Plot ICE-7
This example presents an animated scatter plot of the Iris Dataset, cycling through four flower measurements (petal width, sepal width, petal length, sepal length) on the x-axis every two seconds while sepal length remains on the y-axis. Dots are colored by species (setosa, versicolor, virginica) using green, red, and blue. The chart uses d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom, built as a reusable function with setters for width, height, data, margins, and radius. SVG rendering and a setInterval drive the animation.