Forum Discussion
SVG Images are not shown correctly
- 1 year ago
Jens1983 What do you mean by "image symbol"? Can you share a screen shot? Remember, you need to replace the : with an actual colon ( : ) for the SVG to work. It gets HTML encoded for whatever reason when pasting on this forum.
It should be classified as an image URL. What visual are you using it in? Below is with a standard Table visual. I am not aware of any Preview feature or anything else that should impact the display of SVG measures but will double check.
Jens1983 I'm not super familiar with the path function. This works though:
Stars = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'>
<polygon points=""10,0 12,9 20,8 13,13 16,20 10,15 4,20 7,13 0,9 8,9"" style=""fill:red;stroke:red;stroke-width:0;fill-rule:evenodd;"" />
</svg>"
Comes from here: SVG Color Star Rating - Microsoft Fabric Community
Hi Greg, thanks for the solution but when I use your code, it only shows an image symbol, even when i classify it as an image-url 😞
- Greg_Deckler1 year ago
Community Champion
Jens1983 What do you mean by "image symbol"? Can you share a screen shot? Remember, you need to replace the : with an actual colon ( : ) for the SVG to work. It gets HTML encoded for whatever reason when pasting on this forum.
It should be classified as an image URL. What visual are you using it in? Below is with a standard Table visual. I am not aware of any Preview feature or anything else that should impact the display of SVG measures but will double check.
- Jens19831 year agoRegular Visitor
This works, thanks for your help 🙂
- Anonymous1 year agoNot applicable
Hi Jens1983 ,
I suggest you to try this code.
Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Jens19831 year agoRegular Visitor
Still doesnt work, it shows only an image symbol, even if i label it as an image-url 😞
- Anonymous1 year agoNot applicable
Hi Jens1983 ,
I think there may be something wrong when we copy the code and paste it in website.
I update the my reply with screenshot, it should be date:image... instead of data&colon... .
Please download my sample file and have a test.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.