Skip to main content
100%

Fork of ICE-7 Reusable Scatter Plot

✓ Published0🌍 Public
Ssumitradevipolina
Last edited Mar 29, 2022
Created on Feb 22, 2022

This animated scatter plot visualizes the Iris dataset, mapping petal length and sepal length on the x- and y-axes while coloring each circle by species (setosa, versicolor, virginica). Using D3 v6 APIs such as `scaleLinear`, `extent`, `axisLeft`, and `axisBottom`, it implements a reusable scatter plot function. Every two seconds, a `setInterval` cycles through different columns—petal_width, sepal_width, petal_length, sepal_length—switching the x-axis dimension and updating SVG circles via data joins.

AI-generated description
MIT Licensed

Similar vizzes