{"version":"1.0","type":"rich","title":"idempotence of reusable D3 scatterplot","description":"This example demonstrates a reusable D3 scatterplot that cycles through different data columns of the Iris dataset every second, updating the x-axis and point positions with a smooth animation. Built as a React-compatible module, the `scatterPlot` function uses D3's `scaleLinear`, `scaleOrdinal`, `axisLeft`, `axisBottom`, and `symbol` APIs to render SVG marks colored by species. The plot is re-invoked via `svg.call(plot)` on a timer, showcasing idempotent re-rendering as the `xValue` accessor changes between petal and sepal measurements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/568ed4374ba8417eba23b19c01557400?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}