Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable Scatter plot Activity 8

Public visualization

Viewing a saved revision (read-only)

61d81b2e6c544e0babe32340b122f5f5

Reusable Scatter plot Activity 8

0 stars1🌍 Public
SSharankumar02
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example demonstrates an interactive scatter plot of the Iris dataset, cycling through four different feature combinations on the x-axis every few seconds. The visualization uses the D3.js library to render SVG circles colored by species (setosa, versicolor, and virginica). The scatter plot is constructed with a reusable `scatterPlot` module, which defines the axes and data mapping. The animation is driven by a `setInterval` loop that updates the `xValue` property, while the y-axis remains fixed on sepal length.

AI-generated description

A demonstration of reusable scatter plot.