<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to scale the SVG image in matrix? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928463#M22270</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/234066iF10C4F907FCFF5CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example1.jpg" alt="example1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 12:46:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-11T12:46:36Z</dc:date>
    <item>
      <title>How to scale the SVG image in matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928454#M22268</link>
      <description>&lt;P&gt;Hi! I'd be thankful for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to put my rectangular SVG image into my matrix as a column. For simplicity I have an example with the red rectangular. I use the following formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Example = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR MyText = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"data&amp;amp;colon;image/svg+xml;utf8, &amp;lt;svg width=""200"" height=""100"" viewBox=""0 0 100 100"" xmlns=""&lt;A href="http://www.w3.org/2000/svg" target="_blank" rel="noopener"&gt;http://www.w3.org/2000/svg&lt;/A&gt;"" style=""background: red""&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/svg&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN MyText&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And the result is the following&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;How can I force my red figure to scale and fill all the cell, which is of dark grey colour at the picture (at least by either height or width)? I tried to change parameters in my code or to play with Grid-Image height, but it didn't help. I cannot avoid those terrible gaps between rows while changing image height or a lot of free space inside my cell. Also I cannot get the logic behind its visual changing/not changing while I'm changing parameters in my code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What am I doing wrong? Any tips here?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Feb 2020 12:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928454#M22268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-11T12:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to scale the SVG image in matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928463#M22270</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/234066iF10C4F907FCFF5CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example1.jpg" alt="example1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 12:46:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928463#M22270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-11T12:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to scale the SVG image in matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928954#M22277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;SVG support within tables is a bit lacking. You only have control over a single apsect of the dimension for the container itself, which is specified in the properties under&amp;nbsp;&lt;STRONG&gt;Grid&amp;nbsp;&lt;/STRONG&gt;&amp;gt;&amp;nbsp;&lt;STRONG&gt;Image Height&lt;/STRONG&gt;. This will specify both the height and width of the containing div that the SVG gets rendered into, e.g.:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="svg_scaling.gif" style="width: 598px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/234205iED70C3270ED8021B/image-size/large?v=v2&amp;amp;px=999" role="button" title="svg_scaling.gif" alt="svg_scaling.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The GIF is a bit skippy but hopefully you can see that the cell pretty much remains square throughout.&lt;/P&gt;&lt;P&gt;The way to solve it is that we need a property to allow control of the image width as well as the height. &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/37284061-enable-to-configure-the-width-in-matrix-image-url" target="_self"&gt;There's an idea here for this feature&lt;/A&gt;, if you want to vote on it (I just did).&lt;/P&gt;&lt;P&gt;Not the answer you were after, I'm sure but hopefully clarifies what's possible right now.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;FONT size="2"&gt;If my post solves your challenge, then please consider accepting as a solution to help other forum members find the answer more quickly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 18:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/928954#M22277</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-02-11T18:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to scale the SVG image in matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/929612#M22286</link>
      <description>&lt;P&gt;hi, Daniel! Thank you for the answer. It's so strange and abnormal, that some basic bugs are not being fixed for years, but more and more highly specialized features are added. Ugh, I'm so angry... How can I make a normal visualization, if I even have no option for vertical allignment inside matrix cell??!!... Some simple excel features are still absent... And this small bugs as the result destroy all the work I made for designing my report, cause my final user doesn't see my dax and table schemas, but asks to eliminate those gaps between rows...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Power Bi, facing such issues several times per day is so... disappointing. And I'm not the first person leaving such a comment, you know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 07:35:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-scale-the-SVG-image-in-matrix/m-p/929612#M22286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-12T07:35:19Z</dc:date>
    </item>
  </channel>
</rss>

