<?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 Custom Visual Performance is lacking? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2141499#M32439</link>
    <description>&lt;P&gt;I am currently trying to create my own custom networking visual using either of the following R packages (using the pbiviz rhtml template):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://datastorm-open.github.io/visNetwork/" target="_blank" rel="noopener"&gt;https://datastorm-open.github.io/visNetwork/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://christophergandrud.github.io/networkD3/" target="_blank" rel="noopener"&gt;http://christophergandrud.github.io/networkD3/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However I'm finding performance is extremely slow, even on a very small amount of data (8 nodes), so that when users filter the report does not have a good UX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The visualisation works fine in RStudio, hence I think it's an issue with Power BI. I've also tried only importing the packages I need, and doing absolutely minimal data processing (just selecting columns then removing any unused data frames out of memory). It's also slow in the Power BI Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody else experienced this isse with R custom visuals? Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking maybe using the Javascript package underneath would be more performant - vis.js (i.e. the issue may be something with Power BI and R)?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 21:15:08 GMT</pubDate>
    <dc:creator>jnat5</dc:creator>
    <dc:date>2021-10-18T21:15:08Z</dc:date>
    <item>
      <title>Custom Visual Performance is lacking?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2141499#M32439</link>
      <description>&lt;P&gt;I am currently trying to create my own custom networking visual using either of the following R packages (using the pbiviz rhtml template):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://datastorm-open.github.io/visNetwork/" target="_blank" rel="noopener"&gt;https://datastorm-open.github.io/visNetwork/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://christophergandrud.github.io/networkD3/" target="_blank" rel="noopener"&gt;http://christophergandrud.github.io/networkD3/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However I'm finding performance is extremely slow, even on a very small amount of data (8 nodes), so that when users filter the report does not have a good UX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The visualisation works fine in RStudio, hence I think it's an issue with Power BI. I've also tried only importing the packages I need, and doing absolutely minimal data processing (just selecting columns then removing any unused data frames out of memory). It's also slow in the Power BI Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody else experienced this isse with R custom visuals? Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking maybe using the Javascript package underneath would be more performant - vis.js (i.e. the issue may be something with Power BI and R)?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 21:15:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2141499#M32439</guid>
      <dc:creator>jnat5</dc:creator>
      <dc:date>2021-10-18T21:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Performance is lacking?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2141701#M32441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/333219"&gt;@jnat5&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;R visuals are delegated to an external interpreter by the visuals layer, which is web-based - this is either your local interpreter (if using Desktop) or an interpreter in the Service hosted by MS (if published).&lt;/P&gt;
&lt;P&gt;There is a 'round trip' / 'cold start' cost often associated with this as it is managed over HTTP and processed into a static image (or HTML if&amp;nbsp; using RHTML in the custom visuals SDK) before being rendered in the DOM of the developer visual as such.&lt;/P&gt;
&lt;P&gt;You will indeed get much better performance if you can work directly with the TypeScript SDKs as this is 'native' to Power BI.&lt;/P&gt;
&lt;P&gt;I got into custom visual development in a similar way - started with R and found this performance bottleneck somewhat frustrating, so now I do all dev in TypeScript. Highly optimised code can be very performant.&lt;/P&gt;
&lt;P&gt;If you don't want to go full web dev, and can manage with frameworks like &lt;A href="http://vega.github.io/vega-lite/" target="_self"&gt;Vega-Lite&lt;/A&gt;, I'm working on a visual called &lt;A href="https://deneb-viz.github.io/" target="_self"&gt;Deneb&lt;/A&gt;, which may bridge this gap.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 00:37:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2141701#M32441</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-10-19T00:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Performance is lacking?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2147361#M32507</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/333219"&gt;@jnat5&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did dm-p&amp;nbsp;'s suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, please share more detailed information to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&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>Thu, 21 Oct 2021 06:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Performance-is-lacking/m-p/2147361#M32507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-21T06:59:17Z</dc:date>
    </item>
  </channel>
</rss>

