Skip to main content
100%

Fork of Fork of Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
BBHUMIKA CHUNDU
Last edited Oct 26, 2025
Created on Oct 26, 2025

This example shows an animated scatter plot of the Iris dataset, cycling through different x-axis attributes every two seconds to reveal changing patterns among flower measurements. Each data point is rendered as an SVG circle, with axes updated via d3.axisLeft and d3.axisBottom. The visualization uses a reusable `scatterPlot` function built on d3.scaleLinear and d3.extent, fed by CSV data loaded from a GitHub gist. A setInterval triggers re-renders, swapping the x-value between petal width, sepal width, petal length, and sepal length.

AI-generated description
MIT Licensed

Similar vizzes