Reusable Scatter plot Activity 8
This interactive scatter plot explores the classic Iris dataset, showing how flower measurements relate across different species. A set of colored circles represents individual flowers, with colors distinguishing setosa, versicolor, and virginica. Using D3.js, the visualization cycles through different measurement combinations on the x-axis while keeping sepal length on the y-axis, updating every few seconds. The code leverages D3's CSV parsing, scale functions, and axis components to render the dynamic chart, which includes a legend and labels for each species.