Skip to main content
100%

Reusable Scatter Plot ICE-7

✓ Published0🌍 Public
Mmomopng
Last edited Mar 27, 2022
Created on Mar 25, 2022

This example presents an animated scatter plot of the Iris Dataset, cycling through four flower measurements (petal width, sepal width, petal length, sepal length) on the x-axis every two seconds while sepal length remains on the y-axis. Dots are colored by species (setosa, versicolor, virginica) using green, red, and blue. The chart uses d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom, built as a reusable function with setters for width, height, data, margins, and radius. SVG rendering and a setInterval drive the animation.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes