Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ggayathri
Last edited Mar 26, 2022
Created on Mar 26, 2022

This example visualizes the Iris Dataset as an animated scatter plot, cycling through four attribute combinations every two seconds. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, while `selectAll` and `.join` manage circle updates. The plot is reusable via a closure-based factory pattern, configured with setters for width, height, data, and margins. SVG rendering fills the viewport, with species color-coded (orange, blue, green) though the marker function is defined but not applied to the visible circles.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes