Hi, I'm probably doing something stupid here, but I'm after some guidance.
I have a dynamic svg image, which represents some perimeter beams, updated via mqtt.
The code for the template node is as below:
<svg version="1.1" id="Layer_1" width="380" height="300" xmlns="http://www.w3.org/2000/svg">
<line x1="100" y1="100" x2="250" y2="100" style="stroke:rgb({{msg.payload.Beam1}});stroke-width:5" />
<text x="150" y="90" class="small">Beam 1</text>
<line x1="250" y1="100" x2="250" y2="250" style="stroke:rgb({{msg.payload.Beam2}});stroke-width:5" />
<text x="260" y="150" class="small" style="writing-mode: tb; glyph-orientation-vertical: 0;">Beam 2</text>
<line x1="250" y1="250" x2="100" y2="250" style="stroke:rgb({{msg.payload.Beam3}});stroke-width:5" />
<text x="150" y="265" class="small">Beam 3</text>
<circle cx="110" cy="240" r="5" />
<line x1="100" y1="250" x2="100" y2="100" style="stroke:rgb({{msg.payload.Beam4}});stroke-width:5" />
<text x="90" y="150" class="small" style="writing-mode: tb; glyph-orientation-vertical: 0;">Beam 4</text>
<line x1="0" y1="700" x2="100" y2="700" style="stroke:rgb({{msg.payload.Beam5}});stroke-width:5" />
<line x1="0" y1="700" x2="15" y2="685" style="stroke:rgb({{msg.payload.Beam5}});stroke-width:5" />
<line x1="0" y1="700" x2="15" y2="715" style="stroke:rgb({{msg.payload.Beam5}});stroke-width:5" />
<text x="25" y="720" class="small">Beam 5</text>
<circle cx="10" cy="10" r="5" style="stroke:rgb({{msg.payload.PIR1}});stroke-width:5" />
<text x="18" y="10" class="small">PIR 1</text>
<circle cx="70" cy="10" r="5" style="stroke:rgb({{msg.payload.PIR2}});stroke-width:5" />
<text x="78" y="10" class="small">PIR 2</text>
<circle cx="150" cy="10" r="5" style="stroke:rgb({{msg.payload.PIR3}});stroke-width:5" />
<text x="158" y="10" class="small">PIR 3</text>
<circle cx="220" cy="10" r="5" style="stroke:rgb({{msg.payload.PIR4}});stroke-width:5" />
<text x="228" y="10" class="small">PIR 4</text>
<style>
.small { font: 13px sans-serif; }
</style>
</svg>
Running this on chrome, it renders correctly, however on IE, the dynamic parts of this are missing:
When I inspect that part of the image from IE, it shows the variable name
But when inspecting that part in chrome, it shows the value of the variable
Any advice would be greatly appreciated. Sorry, there are some images missing, I'll add them below