I have a drag behavior that looks like the following:
var boxDrag = d3.behavior.drag()
.origin(function (d) {
return d;
})
.on("drag", drawBox);
function drawBox( /*d*/ ) {
console.log("asdf");
}
It's only a temporary skeleton, and yet it seems to be pulling up some errors about undefined x's and such.
Errors
Here's the full code: http://jsfiddle.net/gamea12/5zsj853h/