Skip to main content
Public

Share visualization

Loading preview…

Title Here

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Title Here

0
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