🌍 Public
Viewing a saved revision (read-only)
3bbb3d02e39a4669979488f84155b3ba
Animated Reusable D3 Scatter Plot
This animated scatter plot cycles through four measurements from the Iris dataset, updating the x-axis every second while the y-axis remains fixed on sepal length. D3 scales map data values to pixel coordinates, and circle elements are re-bound with a key function for smooth transitions. The reusable chart function `scatterPlot()` exposes setters for width, height, margins, radius, and accessors, while `setInterval` and `svg.call(plot)` drive the periodic re-rendering with axis updates.
AI-generated description