Reusable Scatter Plot
✓ Published1🌍 Public
A reusable scatter plot animates through the Iris dataset, cycling the x-axis among four measurements every two seconds. Built with D3 v6, it uses `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` to render axes, while a custom `scatterPlot` function manages the plot’s width, height, margins, and radius. Circles are colored by species (setosa red, versicolor indigo, virginica orange) and sized via `rx`/`ry` attributes. The SVG updates dynamically through `setInterval`, demonstrating a modular design where the same chart is re-parameterized with different data columns.
AI-generated descriptionMIT Licensed