Multitouch Drag
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Mar 18, 2014
Twenty colored circles move freely over a full-window SVG canvas. Each circle is draggable with a multitouch pointer, and its position updates live to follow the finger. The code uses `d3.behavior.drag` with `dragstart`, `drag`, and `dragend` handlers to manage interaction, while `d3.select` and `.transition().ease("elastic")` animate the radius from 32 to 48 pixels on grab and back on release. Random starting coordinates come from `d3.range(20).map()`.
AI-generated descriptiongpl-3.0 Licensed