d3.js
✓ Published0🌍 Public
This interactive scatter plot animates through different pairings of measurements from the Iris dataset, cycling the x-axis among petal width, sepal width, petal length, and sepal length every few seconds. Using d3.csv to load the data and d3.scaleLinear, axisLeft, and axisBottom to construct the axes, the visualization updates in place via setInterval. Circular markers are color-coded by species (setosa, versicolor, virginica) using hardcoded hex values, with a custom legend, axis labels, and a title appended through d3 selection methods. The reusable scatterPlot function encapsulates the plot’s dimensions, scales, and rendering logic.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed