Skip to main content
100%

Mouse Follower

✓ Published0🌍 Public
EErick Brandao
Last edited May 5, 2022
Created on May 5, 2022

This example renders a single yellow circle at the top-left of an SVG canvas, using React to define the circle and D3 v5 to load the visualization. The circle’s radius and position are fixed, and a `handleMouseMove` function is attached to the SVG, logging "aaaaaa" to the console on any mouse movement over the canvas. It demonstrates a minimal interaction pattern where mouse events trigger a JavaScript callback, though no visual response to the mouse is implemented.

AI-generated description
MIT Licensed

Similar vizzes