🌍 Public
Viewing a saved revision (read-only)
13e8fc49689b4c4dac2718b76739525a
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.