[Solved] how to insert a svg tag inside a inner g tag
In your source code there are two main problems: You use the same id value many times. According to HTML documentation the id is used as unique identificator for an element. You are “attaching” the circle to <svg> and not to <g> tag with the svg.appendChild(shape); You can do something similar to: var svgElem = … Read more