{"version":"1.0","type":"rich","title":"Loading data in react with d3","description":"This example demonstrates a simple interactive visualization where a single circle follows the mouse cursor within an SVG canvas. It shows how to combine React’s state management with D3.js for rendering. The code defines a React component using `useState` to track mouse coordinates, and handles `onMouseMove` events to update the circle’s `cx` and `cy` attributes. It uses `d3.v6` for SVG handling and `ReactDOM.render` to mount the component, with the circle radius hard-coded as 30 pixels.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d604976428bb496ba9b50a7a4fe5f326?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}