Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published9🌍 Public
TTulluripallavi
Last edited Mar 28, 2022
Created on Mar 27, 2022

This interactive scatter plot visualizes the Iris dataset, mapping petal width and length while coloring data points by species (setosa, versicolor, virginica) using a custom marker function. The visualization cycles through four variable pairings every two seconds via `setInterval`, updating axes and circle positions. Built with D3 v6, it employs `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll` to render SVG circles dynamically. Overlaid text labels identify the current axes, while the reusable `scatterPlot` module handles margins, scales, and axis generation for each update.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes