I\'m trying to center text in a circle with svg.
the size of the text will be dynamic.
Thank\'s Avi
plunker
My code:
A simpler solution that works with non-centered circles is to put circles and texts inside translated groups.
That way you don't need to repeat the coordinates on the text.
Centered texts Look, I’m centered! Look, I’m also centered!