Fork of animation of reusable D3 scatterplot
✓ Published0🌍 Public
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.
MIT Licensed