This is the structure of my SVG
<g id="CDT-B6-2">
<path id="CDT-B6-box"/>
<text x="1210" y="993" id="CDT-B6-text">888</text>
</g>
Problems:
- The
textContent
from text element is dynamic, it may shorter than length of 3 - Inside my SVG I have many
<g id="CDT-B6-2">
but different ids & position - I used
x="50%" y="50%"
to all text elements but it didn't put the text alignment centered from<g>
element