How To Move (Drag and Drop) multiple Shapes with D3
问题 How do I move (drag and drop) multiple shapes with d3. I tried putting some shapes in a svg and move the svg - this works but not smoothly. This is what I got so far <html> <head> <script type="text/javascript" src="d3.v3.min.js"></script> <title>Creating SVG groups with D3.js</title> </head> <body> <script type="text/javascript"> // http://tutorials.jenkov.com/svg/g-element.html d3image = d3.select("body"); svgcanvas = d3image.append("svg:svg").attr("width", 700).attr("height", 500); svg1 =