Skip to main content
100%

Fork of Reusable for scatter plot animation

✓ Published1🌍 Public
FFrancisco Ibelles
Last edited Jun 19, 2023
Created on Jun 19, 2023

This interactive scatter plot animates the classic Iris Dataset, cycling through different feature pairs (petal width, petal length, sepal width, sepal length) every two seconds with a matching color change. Built using a reusable D3 module, it leverages d3.scaleLinear for axes, d3.extent for domains, and d3.axisLeft/axisBottom for rendering. The SVG circles are updated via a setInterval that reconfigures the scatterPlot function’s x-value and color accessors, while a join pattern handles the transitions. The data is loaded from a remote CSV using d3.csv.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes