Viewing a saved revision (read-only)
e2b0f1776ddd4bbaa13a960b19118c78
Fork of Animated Reusable D3 Scatter Plot
This animated scatter plot cycles through four different measurements from the Iris dataset, showing how petal width, sepal width, petal length, and sepal length relate on the x-axis while sepal length remains constant on the y-axis. Built with D3 v6, it uses the `scaleLinear` and `extent` functions to compute scales, `transition` for smooth 1-second animations with staggered delays, and the `selection.join` API to efficiently add, update, and remove circles as the x-value changes every 3 seconds. The visualization is rendered as SVG with data loaded from a CSV file.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.
Shows the Iris Dataset.