Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable Scatter Plot

Public visualization

Reusable Scatter Plot

0 stars1🌍 Public
Uubl2
Last edited Mar 28, 2022
Created on Mar 22, 2022

A reusable scatter plot animates through the Iris dataset, cycling the x-axis among four measurements every two seconds. Built with D3 v6, it uses `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` to render axes, while a custom `scatterPlot` function manages the plot’s width, height, margins, and radius. Circles are colored by species (setosa red, versicolor indigo, virginica orange) and sized via `rx`/`ry` attributes. The SVG updates dynamically through `setInterval`, demonstrating a modular design where the same chart is re-parameterized with different data columns.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed