{"version":"1.0","type":"rich","title":"Mouse follower","description":"This example shows a simple smiley face that follows the mouse cursor across a 960-by-500 SVG canvas. The face is drawn with a yellow linear gradient, two elliptical eyes, and a d3.arc-generated mouth, all assembled from React components. As the user moves the mouse, the React state updates the circle’s center coordinates via the `onMouseMove` handler, re-rendering the face at the new position. The code uses React’s `useState` and `useCallback` hooks, along with d3’s `arc` for the mouth path, and renders everything as SVG elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1a66ce75fef84bf99b9a193e6c0644bc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}