{"version":"1.0","type":"rich","title":"Dataviz 2020_Ep14 - 8. Interaction With React - useState hook, useCallback - Mouse Follower","description":"A React-based SVG visualization renders a single circle at the center of a 960 by 500 canvas. The circle follows the mouse cursor in real time as the user moves it across the screen, using the `useState` hook to store the cursor’s x and y coordinates and the `useCallback` hook to handle the `onMouseMove` event. The React component updates the circle’s `cx` and `cy` attributes directly, with D3 v6 loaded but not used for this interaction. No external data is involved; the graphic demonstrates state-driven rendering and event handling in React.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c86c664d07174f8aaf9330a424893daa?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}