🌍 Public
Viewing a saved revision (read-only)
c116c8702b0c470cbd2cc6ca290b823e
Fork of Reusable D3 Scatter Plot
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 descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.