🌍 Public
Viewing a saved revision (read-only)
64a27ee0fed7498d97f22e5491d081ec
Fork of Reusable D3 Scatter Plot
This example demonstrates a reusable scatter plot that cycles through different dimensions of the Iris dataset every two seconds, animating the points as the x-axis mapping changes between columns such as petal width and sepal length. The visualization uses D3 v6 APIs including `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and data joins to render SVG circles with axes. It loads CSV data via `d3.csv`, parses numeric fields, and applies a custom margin and fixed radius per point. The animation is driven by `setInterval`, updating the x-value accessor and re-invoking the chart function.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.