Skip to main content
100%

Reusable Scatter Plot

✓ Published0🌍 Public
RRupeshGandham
Last edited Jul 4, 2022
Created on Jul 4, 2022

This animated scatter plot visualizes the Iris flower dataset, cycling through four feature combinations on the x-axis while keeping sepal length on the y-axis. Data points are colored by species—orange for setosa, blue for versicolor, and black for virginica—with a dynamic legend that updates alongside axis labels. Built with D3 v6, it uses `scaleLinear`, `axisBottom`, and `axisLeft` within a reusable `scatterPlot` module, driven by `setInterval` to rotate the displayed attribute. The SVG rendering includes custom circle shapes with elliptical radii and a color-coded species legend.

AI-generated description
MIT Licensed

Similar vizzes