Skip to main content
100%

Reusable Scatter Plot

✓ Published1🌍 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
MIT Licensed

Similar vizzes