Fork of Reusable D3 Scatter Plot
This animated scatter plot cycles through different x-axis variables from the Iris dataset, allowing viewers to compare petal width, sepal width, petal length, and sepal length against a fixed y-axis of sepal length. Data points are color-coded by species (setosa, versicolor, virginica) with a custom legend. The visualization uses D3 v6 APIs including `csv` for data loading, `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll().join()` for SVG circle rendering. A `setInterval` timer updates the x-value accessor, and `scatterPlot` encapsulates the reusable chart logic.