🌍 Public
Viewing a saved revision (read-only)
8046fe6d56df450d9ad4807f804d2224
Fork of Reusable D3 Scatter Plot.
This interactive scatter plot displays the Iris dataset, using colored circles to represent three species. The visualization iterates through four flower measurements, changing the x-axis variable every few seconds while keeping petal width on the y-axis. Built with D3 v6, the example uses `scaleLinear`, `axisBottom`, and `axisLeft` to construct axes, while a `setInterval` callback updates the data bindings. The reusable `scatterPlot` module manages the chart’s dimensions, margins, and scales, and the SVG circles are colored green, brown, and magenta based on species.
AI-generated description