Why can I only see part of the circle?
Hey there,
The circle has cx
and cy
attributes that determine where the center pixel is on the screen. Because you haven’t set the cx
or cy
, the center of the circle is at pixel 0,0
, which is the top-left corner of the window.
Try adding this to the code:
square.attr('cx', 200).attr('cy', 200)
2 Likes