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
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.

Comments

Sign in to join the discussion.

MIT Licensed