Reusable Scatter plot Activity 8
This interactive scatter plot explores the Iris dataset, displaying four measurement attributes while cycling through different x-axis variables to reveal patterns among three flower species. The visualization color-codes data points by species using custom markers and includes a legend, axis labels, and animated transitions. Built with D3.js version 6.7, it combines reusable scatter plot components, scaleLinear, axisBottom, and axisLeft functions with SVG rendering. The chart automatically updates every interval, rotating through petal width, sepal width, petal length, and sepal length on the x-axis while maintaining a fixed y-axis for comparison.