Viewing a saved revision (read-only)
e36c1b9b7d9843d58dad9ae196f64a91
Animated Reusable D3 Scatter Plot
This example presents an animated scatter plot of the classic Iris Dataset, cycling through different combinations of flower measurements every three seconds. The visualization leverages a reusable D3 chart factory to manage its own scales, axes, and circle marks. It employs D3's `selection.join` to smoothly transition entering, updating, and exiting circles, using `d3.transition` for easing position changes and staggered delays. Axis updates are also animated via transitions. The code imports specific utilities like `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from D3 v6.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.
Shows the Iris Dataset.