Skip to main content
100%

Fork of Animated Reusable D3 Scatter Plot

✓ Published0🌍 Public
DDasbach.EJ
Last edited May 23, 2021
Created on May 23, 2021

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 description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes