{"version":"1.0","type":"rich","title":"Fork of Circles with D3","description":"This example shows an interactive SVG canvas with a single circle that moves and changes color in response to mouse movement and clicks. The circle follows the cursor position using `d3.pointer` and a `setState` callback, while clicking the canvas generates a random hexadecimal color via `Math.random`. The code uses D3’s General Update Pattern with `selectAll`, `data`, and `join` to manage the SVG and circle elements, and binds state-driven data objects to set `cx`, `cy`, `r`, and `fill` attributes dynamically.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/314f5d1f971e4b50a8625edd61398774?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}