Skip to main content
100%

Fork of Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
SSheshidharreddy
Last edited Mar 28, 2022
Created on Mar 28, 2022

This interactive scatter plot visualizes the Iris dataset, cycling through different feature combinations on the x-axis every two seconds. The chart uses SVG circles colored by species (setosa, versicolor, and virginica) to reveal clustering patterns in the flower measurements. Built with D3 v6, the example demonstrates a reusable scatter plot module that separates axis rendering from data point positioning. The code imports specific D3 functions including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the visualization. The plot animates by updating the x-value mapping through a `setInterval` loop, while the y-axis remains fixed on sepal length.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes