ICE-7 Reusable scatter plot
✓ Published0🌍 Public
This example shows the Iris dataset as an animated scatter plot of petal width against sepal length, cycling through different measurement columns every two seconds. Each point uses a distinct symbol from D3’s `symbol` generator based on species, with alternating green and gold fills, and axes labeled directly in the SVG. The visualization relies on a reusable `scatterPlot` function built with D3 scales (`scaleLinear`, `scaleOrdinal`), axis components (`axisLeft`, `axisBottom`), and a `setInterval` loop that updates the x-value mapping, re-rendering the chart via `svg.call(plot)`.
AI-generated descriptionCreating a reusable scatter plot for the Iris Data.
MIT Licensed