I have below code which parses myObj.label
as a svg <text>
tag.
myObj.label = data.plan + ' ' + data.Actual;
I would like to insert a line break in between actual and plan data. I tried below code but it does not work.
myObj.label = data.plan + ' <tspan dy="1em"> </tspan> ' + data.Actual;
Instead of getting a line break it just prints when the html is created. I want to create a <tspan>
tag in the text.
A solution is much appreciated.