<?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 How remove space/padding around Power BI Custom R/plotly Visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-remove-space-padding-around-Power-BI-Custom-R-plotly-Visual/m-p/1734806#M28504</link>
    <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;In the absence of a standard power bi component that can create an insight from two separate datasets showing one as a line graph and the other as a scatter, I had to create this myself.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;After some research I decided to use R and plotly.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;In the development I used RStudio and the component I made looked great there.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Until I produced the Power BI component via pbivi / visual code.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;It showed that the graph was very small in relation to the area it received in the power bi report.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;A lot of free space above and to the left of the component was the result. Got a tip to use the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ReadFullFileReplaceString, like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;#&amp;nbsp;resolve&amp;nbsp;bug&amp;nbsp;in&amp;nbsp;plotly&amp;nbsp;(margin&amp;nbsp;of&amp;nbsp;40&amp;nbsp;px)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;#ReadFullFileReplaceString('out.html',&amp;nbsp;'out.html',&amp;nbsp;',"padding":40,',&amp;nbsp;',"padding":0,')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ReadFullFileReplaceString&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'out.html'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'out.html'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;',"padding":[0-9]*,'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;',"padding":0,'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it didn't help too much. My boss is not happy with this visual and right now I don't know how to solve this. &lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;Are there any ways to improve this or are there other better ways to solve this using other techniques than plotly/R? The line chart is a disconnected dataset while the scatter has relationships in the data model. Is any of you has solve this or have better ideas, please let me know. Reference to articles or maybe you have code to share, please to so.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;NB! If we could join the two datasets into one even though the first dataset is disconnected and the other has relationships in the datamodel. If we could create a custom calculated table that joins the two dataset (they both share x,y float values), and from this calculated table could create a line chart and scatters using standard visuals)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;regards Geir&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem R.png" style="width: 689px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/478525i6865CFADF1300D65/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem R.png" alt="problem R.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Mar 2021 13:48:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-21T13:48:53Z</dc:date>
    <item>
      <title>How remove space/padding around Power BI Custom R/plotly Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-remove-space-padding-around-Power-BI-Custom-R-plotly-Visual/m-p/1734806#M28504</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;In the absence of a standard power bi component that can create an insight from two separate datasets showing one as a line graph and the other as a scatter, I had to create this myself.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;After some research I decided to use R and plotly.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;In the development I used RStudio and the component I made looked great there.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Until I produced the Power BI component via pbivi / visual code.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;It showed that the graph was very small in relation to the area it received in the power bi report.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;A lot of free space above and to the left of the component was the result. Got a tip to use the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ReadFullFileReplaceString, like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;#&amp;nbsp;resolve&amp;nbsp;bug&amp;nbsp;in&amp;nbsp;plotly&amp;nbsp;(margin&amp;nbsp;of&amp;nbsp;40&amp;nbsp;px)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;#ReadFullFileReplaceString('out.html',&amp;nbsp;'out.html',&amp;nbsp;',"padding":40,',&amp;nbsp;',"padding":0,')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ReadFullFileReplaceString&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'out.html'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'out.html'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;',"padding":[0-9]*,'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;',"padding":0,'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it didn't help too much. My boss is not happy with this visual and right now I don't know how to solve this. &lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;Are there any ways to improve this or are there other better ways to solve this using other techniques than plotly/R? The line chart is a disconnected dataset while the scatter has relationships in the data model. Is any of you has solve this or have better ideas, please let me know. Reference to articles or maybe you have code to share, please to so.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;NB! If we could join the two datasets into one even though the first dataset is disconnected and the other has relationships in the datamodel. If we could create a custom calculated table that joins the two dataset (they both share x,y float values), and from this calculated table could create a line chart and scatters using standard visuals)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;regards Geir&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem R.png" style="width: 689px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/478525i6865CFADF1300D65/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem R.png" alt="problem R.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 13:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-remove-space-padding-around-Power-BI-Custom-R-plotly-Visual/m-p/1734806#M28504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-21T13:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How remove space/padding around Power BI Custom R/plotly Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-remove-space-padding-around-Power-BI-Custom-R-plotly-Visual/m-p/1738900#M28550</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, current power bi does not provide the options to do custom with padding ranges. Perhaps you can submit to the idea forum to help improve R visual.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 09:07:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-remove-space-padding-around-Power-BI-Custom-R-plotly-Visual/m-p/1738900#M28550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-23T09:07:22Z</dc:date>
    </item>
  </channel>
</rss>

