Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 9&10

Public visualization

Viewing a saved revision (read-only)

8b6b458765994aed85ddb3d566b2a16c

Activity 9&10

0 stars0🌍 Public
SSumanthnaidu213
Last edited Apr 24, 2024
Created on Apr 24, 2024

This interactive scatter plot animates through different pairings of the Iris dataset’s four measurements, cycling the x-axis between petal width, sepal width, petal length, and sepal length while keeping sepal length on the y-axis. Each species appears as a distinct color—sky blue, light green, or orange—with an animated legend and title rendered inside the SVG. The visualization uses d3.csv to load the data, d3.scaleLinear for axes, and d3.axisLeft and d3.axisBottom for scales, with a reusable scatterPlot function driving the transitions via setInterval.

AI-generated description

A demonstration of reusable scatter plot.