Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Aa1615
Last edited Aug 17, 2021
Created on Aug 17, 2021

This example visualizes the Iris Dataset as a scatter plot, showing the relationship between two flower measurements at a time. The plot cycles every two seconds between four different x-axis attributes—petal width, sepal width, petal length, and sepal length—while keeping sepal length on the y-axis. It uses D3 v6 APIs like `scaleLinear`, `axisLeft`, `axisBottom`, and a reusable `scatterPlot` function with setter methods. Animated transitions are driven by `setInterval`, rendering circles and axes as SVG elements in a full-window view.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes