Skip to main content
100%

ScatterPlot

✓ Published0🌍 Public
AAlankruthSai
Last edited Mar 28, 2022
Created on Mar 28, 2022

This animated scatter plot visualizes the Iris dataset, color-coding points by species (setosa, versicolor, virginica) and cycling through the four numeric attributes for the x-axis every two seconds using `setInterval`. The reusable chart, built with D3 v6, uses `scaleLinear`, `axisLeft`, and `axisBottom` to map petal and sepal measurements to SVG circle positions, with a custom `scatterPlot()` factory function managing dimensions, margins, and axis updates.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes