ICE7-Q1
✓ Published0🌍 Public
This animated scatter plot cycles through four Iris dataset variable pairs on the x-axis—petal width, sepal width, petal length, and sepal length—while keeping sepal length fixed on the y-axis. It uses D3’s `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, with `scaleOrdinal` and `schemeCategory10` coloring points by species. A `setInterval` updates the chart every two seconds by re-binding the x-value accessor and label, demonstrating reusable chart composition via a custom `scatterPlot` function. The visualization renders as SVG with a full-window layout.
AI-generated descriptionMIT Licensed