Can I move an SVG element between SVG groups, in d3.js

后端 未结 4 2065
心在旅途
心在旅途 2020-12-10 14:24

Can I move an SVG element between SVG groups - without stirring too much calculation behind the scenes nor crafting too much code in my own code? The d3 api documentation me

4条回答
  •  情深已故
    2020-12-10 14:50

    You can't do this in D3, but JQuery has the .appendTo() function for that, e.g.

    $("#element").appendTo("#otherGroup");
    

提交回复
热议问题