The cx and cy attributes only work for circle elements. For g elements, use transform .
Another explanation: attributes specific to the element cx , cy , x , y , etc. position the element in the coordinate system. The transform attribute repositions the coordinate system. For elements that do not have specific position attributes, this is the only way to position.
source share