🌍 Public
Viewing a saved revision (read-only)
fe948aa893bb4c0fac304a78a5d10f5c
Reusable Scatter plot Activity 8
This interactive scatter plot visualizes the Iris dataset, showing sepal and petal measurements as colored circles representing three flower species. The visualization cycles through different variable pairings on the axes using a timer, updating the chart every few seconds. Built with D3.js version 6, the code uses `csv()` to load data, `select()` and `join()` for SVG rendering, and `setInterval()` to trigger axis transitions. The reusable `scatterPlot()` function manages the chart layout, while custom legend markers and axis labels are appended dynamically.
AI-generated descriptionA demonstration of reusable scatter plot.