<?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 Power BI Custom Visual D3.js problem in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Custom-Visual-D3-js-problem/m-p/461001#M14189</link>
    <description>&lt;P&gt;I am trying to create tree structure in Power BI uing&amp;nbsp;d3@3.5.5. But I am having some issue with it. I have a simple update function as shown below.&lt;/P&gt;&lt;PRE&gt;public update(options: VisualUpdateOptions) {

     console.log("hello1");

     var tree = d3.layout.tree()
	    .size([400, 400]);

     console.log("hello2");
}&lt;/PRE&gt;&lt;P&gt;As you can see in above code, I am priting&amp;nbsp;&lt;STRONG&gt;hello1&lt;/STRONG&gt; to console then creating tree object using d3 then printing&amp;nbsp;&lt;STRONG&gt;hello2&lt;/STRONG&gt;&amp;nbsp;to finish off. The problem is that I can see the&amp;nbsp;&lt;STRONG&gt;hello1&amp;nbsp;&lt;/STRONG&gt;on the console but I can not see&amp;nbsp;&lt;STRONG&gt;hello2&lt;/STRONG&gt; no matter how many time I refresh the visual. See screenshot of console below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="console.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/106278i75887A50105ABC5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="console.PNG" alt="console.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can someone please tell me why I can not see&amp;nbsp;&lt;STRONG&gt;hello2&amp;nbsp;&lt;/STRONG&gt;into the console?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 13:29:37 GMT</pubDate>
    <dc:creator>bhavesh-jadav</dc:creator>
    <dc:date>2018-07-12T13:29:37Z</dc:date>
    <item>
      <title>Power BI Custom Visual D3.js problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Custom-Visual-D3-js-problem/m-p/461001#M14189</link>
      <description>&lt;P&gt;I am trying to create tree structure in Power BI uing&amp;nbsp;d3@3.5.5. But I am having some issue with it. I have a simple update function as shown below.&lt;/P&gt;&lt;PRE&gt;public update(options: VisualUpdateOptions) {

     console.log("hello1");

     var tree = d3.layout.tree()
	    .size([400, 400]);

     console.log("hello2");
}&lt;/PRE&gt;&lt;P&gt;As you can see in above code, I am priting&amp;nbsp;&lt;STRONG&gt;hello1&lt;/STRONG&gt; to console then creating tree object using d3 then printing&amp;nbsp;&lt;STRONG&gt;hello2&lt;/STRONG&gt;&amp;nbsp;to finish off. The problem is that I can see the&amp;nbsp;&lt;STRONG&gt;hello1&amp;nbsp;&lt;/STRONG&gt;on the console but I can not see&amp;nbsp;&lt;STRONG&gt;hello2&lt;/STRONG&gt; no matter how many time I refresh the visual. See screenshot of console below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="console.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/106278i75887A50105ABC5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="console.PNG" alt="console.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can someone please tell me why I can not see&amp;nbsp;&lt;STRONG&gt;hello2&amp;nbsp;&lt;/STRONG&gt;into the console?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Custom-Visual-D3-js-problem/m-p/461001#M14189</guid>
      <dc:creator>bhavesh-jadav</dc:creator>
      <dc:date>2018-07-12T13:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Custom Visual D3.js problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Custom-Visual-D3-js-problem/m-p/461582#M14201</link>
      <description>&lt;P&gt;There's a JavaScript exception. Our recommendation is to wrap update into try-catch to figure out a root of this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public update(options: VisualUpdateOptions) {

     console.log("hello1");

     try {
         var tree = d3.layout.tree()
	       .size([400, 400]);
     } catch(e) {
          console.log(e);
     }

     console.log("hello2");
}&lt;/PRE&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 05:55:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Custom-Visual-D3-js-problem/m-p/461582#M14201</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-13T05:55:27Z</dc:date>
    </item>
  </channel>
</rss>

