{"version":"1.0","type":"rich","title":"Reusable Charts","description":"This example demonstrates a reusable D3 chart component that visualizes the Iris dataset as a scatter plot, cycling through different variable pairings every two seconds. The `scatterPlot` function creates a configurable plot with settable properties like width, height, data, x/y value functions, margin, and radius. Using D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom`, it renders SVG circles with animated axes that update as the selected columns change. The plot is applied to the SVG via the `.call()` method, and `setInterval` drives the rotation through the dataset’s four numeric columns.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/23bf977eca604c81b7b58b485387e4ba?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}