Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
AAlankruthSai
Last edited Mar 25, 2022
Created on Mar 25, 2022

This example presents a scatter plot of the Iris Dataset, with points colored by species. The visualization cycles through four different x-axis mappings—petal width, sepal width, petal length, and sepal length—every two seconds, animating the transitions between views. Built with D3 v6, it uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render the plot, while a `setInterval` loop updates the x-value accessor and re-invokes the reusable chart function. SVG circles represent the data points, and axes are redrawn with each update.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes