{"version":"1.0","type":"rich","title":"Reusable D3 Scatter Plot","description":"This example demonstrates a reusable scatter plot of the Iris dataset, cycling through different flower measurements every two seconds to show the relationship between variables. Built with D3 v6, it uses the reusable chart pattern with a closure-based `scatterPlot()` function exposing getter-setter methods for width, height, data, margins, and scales. The plot renders SVG circles with `d3.scaleLinear` for axes and `axisLeft`/`axisBottom` for ticks, updating via `selection.join()`. Data is loaded from a CSV file using `d3.csv`, while the animation is driven by `setInterval`, calling the plot again with a new x-value mapping.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2bd7dbdb1a2443c487047a45fb2921d9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}