SVG Circle | Sololearn: Learn to code for FREE!


SVG Circle

Please can someone help me understand... If the cx and cy attributes of a <circle> represent the x and y coordiante for the centre of that circle, then why is it that when they're omitted, I only see quarter of a circle? Surely it should just be that the circle would move? TIA Guys (:


12/11/2018 10:00:10 AM


4 Answers

New Answer


Because by default it adds cx=0 and cy=0 since you have omitted cx and cy , hence you see a quarter circle(center of circle is at (0,0) origin)


Because your origin start from there. change cx,cy coordinate you will see the circle


Fair enough when it's in the top left of the screen, but if you use css to move it why doesn't the rest of the circle appear?


Thank you that was a really helpful video (: