🌍 Public
Viewing a saved revision (read-only)
75b0bb061a9d4e628b806381bc11b7f4
Fork of animation of reusable D3 scatterplot
This example animates a scatterplot of the Iris dataset, cycling through pairs of measured features every second. The chart assigns each species a color and symbol, with points transitioning between positions as new x- and y-axes are computed. Built with React and D3 v7, it uses a reusable `scatterPlot` function with `scaleLinear`, `scaleOrdinal`, `symbol`, and `transition` to update SVG elements smoothly. The animation relies on `setInterval` to trigger re-renders, demonstrating dynamic axis rescaling and point movement.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.