Skip to main content
100%

ICE 7 - Reusable Scatter Plot

✓ Published0🌍 Public
RRajeevMukhesh
Last edited Jul 3, 2022
Created on Jul 3, 2022

This interactive scatter plot uses the classic Iris Dataset to visualize the relationships between sepal and petal measurements. Built with D3 version 6 on an SVG canvas, it cycles through four different x-axis variables—petal width, sepal width, petal length, and sepal length—while keeping sepal length on the y-axis. Data points are color-coded by iris species (setosa, versicolor, virginica) using the `scatterPlot` reusable chart component, which relies on D3's `scaleLinear`, `axisLeft`, and `axisBottom` APIs. The `setInterval` drives the automated rotation through the variables, with an animated legend updating alongside.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes