🌍 Public
Viewing a saved revision (read-only)
b01d68f0b23c42c785e6c25be0b21d45
Reusable Scatter plot Activity 8
This example demonstrates an interactive scatter plot of the Iris dataset, cycling through four different feature combinations on the x-axis every few seconds. The visualization uses the D3.js library to render SVG circles colored by species (setosa, versicolor, and virginica). The scatter plot is constructed with a reusable `scatterPlot` module, which defines the axes and data mapping. The animation is driven by a `setInterval` loop that updates the `xValue` property, while the y-axis remains fixed on sepal length.
AI-generated descriptionA demonstration of reusable scatter plot.