I have an array of strings. Say,
[\'Jan 11\',\'Feb 11\']
And i am creating a vertical text with these string like so
You can use getBBox method to calculate dimensions of the SVG nodes.
var textNode = document.getElementsByTagName('text'), bbox = textNode.getBBox(); //bbox now have x, y, width and height properties