Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
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.
MIT Licensed