🌍 Public
Viewing a saved revision (read-only)
7bd4242468fe48d8af382bb9b8f76f64
Animated Reusable D3 Scatter Plot
This example shows an animated scatter plot of the Iris dataset, cycling through different flower measurements every two seconds. Built with React and D3 v7, it uses `scaleLinear` and `extent` for axes, with circles rendered via SVG. A reusable `scatterPlot` function updates positions using `transition` with staggered delays, while `axisLeft` and `axisBottom` refresh axes. Data loads from a CSV via `csv` and `parseRow`, and `setInterval` triggers re-renders with new x-values.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.