🌍 Public
Viewing a saved revision (read-only)
9c9d544d253140d195035172b19108d1
Fork of Reusable D3 Scatter Plot
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 descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.