🌍 Public
Viewing a saved revision (read-only)
66c11df80c89454eb2d86841cb8e4f17
Fork of Reusable D3 Scatter Plot
This example presents a reusable scatter plot visualizing the Iris Dataset, which cycles through different flower measurements as axes every two seconds. The plot uses D3 v6’s `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll` with a data join for animated SVG circles. The code defines a custom `scatterPlot` function with configurable accessors for x and y values, margins, and radius, driven by `setInterval` to update the plot’s dimensions.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.