Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published2🌍 Public
Vvenigallajaanu@gmail.com
Last edited Mar 28, 2025
Created on Mar 28, 2025

This animated scatter plot cycles through four attributes of Fisher’s iris dataset—petal width, sepal width, petal length, and sepal length—on the x-axis against sepal length on the y-axis. Built with D3 v6 and a reusable `scatterPlot` module, it renders SVG circles scaled by `d3.scaleLinear` with `d3.axisLeft` and `d3.axisBottom`. Every two seconds, `setInterval` updates the x-value accessor and re-calls the plot, smoothly shifting the point positions and axes.

AI-generated description
MIT Licensed

Similar vizzes