Fork of Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This interactive scatter plot animates the Iris dataset by cycling the x-axis through petal width, sepal width, petal length, and sepal length every 1.5 seconds while keeping sepal length on the y-axis. It uses d3.csv to load data and d3.scaleOrdinal with a viridis palette to color points by species. The reusable d3.scatterPlot module leverages scaleLinear, axisLeft, and axisBottom for scales and axes, with SVG circles rendered and updated via selection calls. Legends and axis labels are appended manually, and the animation uses setInterval to reassign the xValue and refresh the plot.
AI-generated descriptionMIT Licensed