🌍 Public
Viewing a saved revision (read-only)
4a89864e96774dd6923e4c65ba0d886f
Reusable D3 Scatter Plot
This reusable scatter plot displays the Iris dataset, mapping petal and sepal measurements as animated circles. Built with D3 v6 and React, it uses `scaleLinear` to project data values to pixel coordinates, with `d3.axisLeft` and `d3.axisBottom` for axes. The `scatterPlot` function returns a configurable chart instance, toggling between four measurement columns on the x-axis via `setInterval` every two seconds. SVG circles are joined with data, and transitions update their positions smoothly.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.