Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Title Here

Public visualization

Title Here

0 stars0🌍 Public
KKhatera Alizada
Last edited Jan 11, 2023
Created on Jan 11, 2023

A gray square follows the mouse cursor across an SVG canvas, demonstrating basic pointer tracking with D3.js. The visualization uses d3.select to create an SVG and attach a rectangle element, which responds to mousemove events by updating its x and y attributes based on the event coordinates. The square never changes size or color, and the behavior is contained entirely within the SVG viewport.

AI-generated description

A circle that follows the mouse.

Comments

Sign in to join the discussion.

MIT Licensed