🌍 Public
Viewing a saved revision (read-only)
9f91a229ab894d869ff8cc64ed73844e
Fork of Reusable D3 Scatter Plot
This example shows the Iris Dataset in an animated scatter plot that cycles through different feature pairs every two seconds. It uses a reusable D3 scatter plot component, built with `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` from D3 v6. The plot is rendered as an SVG that fills the browser window, with circles sized by a fixed radius. The animation is driven by `setInterval`, which updates the x-value mapping and re-applies the plot to the SVG element.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.