I’m exploring the exciting possibilities outlined by @Suvrutt_Gurjar to implement text overlays on SVG images. I am struggling to make my implementation flexible - and would appreciate any pointers.
I’ve set up my App as outlined and it works like a charm to overlay the [Attribute] text on the SVG.
I want the [Attribute] to pick up the COUNT of rows in a Slice - so I can how the number of rows related to the subject of the SVG (# rows Overdue etc). Despite many attempts I can’t achieve this. If I put the COUNT expression in the [Attribute] formula field, it treats is as text and doesn’t calculate the expression. I’ve tried editing the COUNT into the existing CONCATENATE express (putting the slice name in the [Attribute]) but that either fails to do anything, or behaves as before and treats is all as text.
Any suggestions on how to achieve what I want?
The original code from Suvrutt…
CONCATENATE("data:image/svg+xml;utf8,<svg version=""1.1""
xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink""
width=""435"" height=""253"">
<image x=""0"" y="" 0 "" width=""435"" height=""253""
xlink:href=""",[Attribute B64],"""/>
<text font-family=""Verdana"" font-size=""25"" x=""170"" y=""140""
fill=""rgb(46, 139, 87)"">",[Attribute],"</text>
</svg>")
One of my (many) attempts… (where [Attribute] = “Overdue Training”, the name of a valid slice).
CONCATENATE("data:image/svg+xml;utf8,<svg version=""1.1""
xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink""
width=""435"" height=""253"">
<image x=""0"" y="" 0 "" width=""435"" height=""253""
xlink:href=""",[Attribute B64],"""/>
<text font-family=""Verdana"" font-size=""25"" x=""170"" y=""140""
fill=""rgb(46, 139, 87)"">", "COUNT(",[Attribute],"[_ComputedKey]) ","</text>
</svg>")
…and, the result…
Thanks in advance for your generosity in sharing your wisdom.


