Skip to main content
100%

Fork of animation of reusable D3 scatterplot

✓ Published0🌍 Public
Jjimmy.fisher@member.mensa.org
Last edited Nov 28, 2024
Created on Nov 28, 2024

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes