Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris flower dataset, with points colored by species (setosa, versicolor, virginica) using D3.js. The visualization cycles through four variable pairings on the x-axis—petal width, sepal width, petal length, and sepal length—while the y-axis remains fixed on sepal length, updating via setInterval. It uses d3.scaleLinear, d3.axisLeft, and d3.axisBottom within a reusable scatterPlot function, rendering SVG circles with animations. The interface includes a title, axis labels, and a color legend, all styled with CSS.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed