Dotted Path Following the Mouse
Bit of a simple variation of Mike Bostock's Spline Transition.
The idea is to have a dotted line of x-points long follow the mouse around, and trail behind it. Essentially the code creates and appends a path element, then on every mouse move adds a new point to the list of points, drops an old point, and updates the path.
Simples!