🌍 Public
Viewing a saved revision (read-only)
23697d4d1a6b442fa269eb1574c27c56
Fork of Reusable Scatter plot Activity 8
This fork of a D3.js scatter plot demonstrates the iris dataset’s four measured features (petal and sepal length/width) with the x-axis cycling through each variable on a timer while the y-axis stays fixed on sepal length. Colored circles distinguish iris species, and the plot includes a static legend. The code uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs within a custom `scatterPlot` generator, animating via `setInterval` and rendering to SVG. The data is loaded from a CSV file using D3’s `csv` function.
AI-generated descriptionA demonstration of reusable scatter plot.