Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

9c9d544d253140d195035172b19108d1

Fork of Reusable D3 Scatter Plot

0 stars0🌍 Public
Ccrees00
Last edited Aug 31, 2022
Created on Aug 31, 2022

This example displays the classic Iris dataset as an animated scatter plot, cycling through the four measured features (petal width, sepal width, petal length, and sepal length) on the x-axis every 20 seconds while sepal length stays on the y-axis. Built with D3 v6, it uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to compute scales and draw axes, with the `scatterPlot` function providing a reusable API via method chaining. Each feature’s values map to circle positions with a fixed radius, and the visualization renders in SVG, resizing to fill the browser window.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.