-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
next book updateTo incorporate on the next update to the bookTo incorporate on the next update to the bookv5This needs revision for D3 v5.xThis needs revision for D3 v5.x
Description
Original code:
var dragging = function(d) {
//Log out d3.event, so you can see all the goodies inside
//console.log(d3.event);
It should be function(e,d)
and console.log(e)
and using e
(event) to get access to dx
and dy
.
Also I have a question:
svg.selectAll("path") .attr("d", path);
Paths and circles in this example (p.301) are updated on svg
instead of map
which contains the group. Should it be map
instead or it shouldn't matter here?
Thanks a lot!
Metadata
Metadata
Assignees
Labels
next book updateTo incorporate on the next update to the bookTo incorporate on the next update to the bookv5This needs revision for D3 v5.xThis needs revision for D3 v5.x