Skip to main content
100%

Fork of React & D3 Drag

✓ Published0🌍 Public
Ddoankhanh122@gmail.com
Last edited May 1, 2024
Created on May 1, 2024
Forked from React & D3 Drag

Three draggable circles are connected by thick black lines, with hover interactions changing the stroke style. Built with React and D3.js v7, the visualization uses `d3.drag` to handle pointer events, updating state via React's `useState` and immutable data patterns. A `VizWrapper` delegates rendering to a D3 function that uses `selectAll` and `join` to update SVG circles and lines. The initial data consists of three coordinate pairs, rendered against a full-window SVG canvas.

AI-generated description

A basic demonstration of d3-drag used with React to drag circles connected by lines.

Inspired by Observable: Drag (SVG).

MIT Licensed

Similar vizzes