Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot

Public visualization

Fork of Reusable D3 Scatter Plot

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed