Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

D3, SVG, javascript, grouping

I dynamically adding SVG images using d3 javascript.  I want to group together a number of objects, and then be able to move/drag them as a group.   Specifically, I'm creating a rectangle (which represents inventory) inside a circle with four adjoining lines that act as a sort of a "bulls eye" to indicate visually that an inventory object is selected.  

First how do I group? and then how do I drag all five (rectangle, circle, and four lines) objects as a group?
ASKER CERTIFIED SOLUTION
Avatar of Robert Schutt
Robert Schutt
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HLRosenberger

ASKER

I got it to work.  Thanks!