<?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: Edit Custom Visual Developed in PowerBI developer tool (Online) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81524#M2892</link>
    <description>&lt;P&gt;You could try using this &lt;A href="https://github.com/Microsoft/PowerBI-visuals-sampleBarChart" target="_self"&gt;visual&lt;/A&gt; as a template and gradually replacing it with your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it makes any difference, but I noticed the barchart source from the link above does not capitalize "d3" which is capitalized in the error you attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Cannot find namespace 'D3'&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 11:21:39 GMT</pubDate>
    <dc:creator>mpo</dc:creator>
    <dc:date>2016-10-24T11:21:39Z</dc:date>
    <item>
      <title>Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/80336#M2835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make some changes in my Custom Visual which is devloped in online version of the Power BI DevTool. can any one help me how can i go doing changes in that custom visual using new Power BI PBIVIZ tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Copy pasting my Typescript code to "src/visual.ts" file, but when i try to run&amp;nbsp;it then it give me following error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI_Error.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/17102iE965C033ED318E03/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBI_Error.png" alt="PowerBI_Error.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using D3 Script to draw the visuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:31:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/80336#M2835</guid>
      <dc:creator>ls_shetty</dc:creator>
      <dc:date>2016-10-20T09:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/80351#M2837</link>
      <description>&lt;P&gt;1) try navigate to the visual folder and run "&lt;/P&gt;&lt;PRE&gt;npm i&lt;/PRE&gt;&lt;P&gt;to install dependencies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though, old custom visual API is not 100% compatible with the new one, so it's possible you will have to redo some parts from scratch. Some features are not ported yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at &lt;A href="https://community.powerbi.com/t5/Developer/Developing-Custom-Visuals-Old-API-vs-New-API/td-p/72928" target="_self"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/80351#M2837</guid>
      <dc:creator>mpo</dc:creator>
      <dc:date>2016-10-24T07:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/80934#M2861</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3133"&gt;@ls_shetty﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to post above, you could specify "devDependencies" in package.json and study the new PowerBI command line tools at &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals-tools&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 10:23:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/80934#M2861</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2016-10-21T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81336#M2877</link>
      <description>&lt;P&gt;i tried npm command, &amp;nbsp;But still its not working. is there any other workaround for this.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 05:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81336#M2877</guid>
      <dc:creator>ls_shetty</dc:creator>
      <dc:date>2016-10-24T05:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81409#M2878</link>
      <description>&lt;P&gt;Did "npm i" succeed?&lt;/P&gt;&lt;P&gt;Did the error change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could open any existing pbiviz file with an archive manager, to inspect the structure.&lt;/P&gt;&lt;P&gt;Then you could try zipping contents of your visual folder and changing extension to ".pbiviz".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:40:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81409#M2878</guid>
      <dc:creator>mpo</dc:creator>
      <dc:date>2016-10-24T07:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81513#M2891</link>
      <description>&lt;P&gt;the command "npm i" run sucessfully but still m getting same error.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 10:49:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81513#M2891</guid>
      <dc:creator>ls_shetty</dc:creator>
      <dc:date>2016-10-24T10:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81524#M2892</link>
      <description>&lt;P&gt;You could try using this &lt;A href="https://github.com/Microsoft/PowerBI-visuals-sampleBarChart" target="_self"&gt;visual&lt;/A&gt; as a template and gradually replacing it with your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it makes any difference, but I noticed the barchart source from the link above does not capitalize "d3" which is capitalized in the error you attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Cannot find namespace 'D3'&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 11:21:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/81524#M2892</guid>
      <dc:creator>mpo</dc:creator>
      <dc:date>2016-10-24T11:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Custom Visual Developed in PowerBI developer tool (Online)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/91781#M3248</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;RE: Old custom visual API is not 100% compatible with the new one, so it's possible you will have to redo some parts from scratch.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exactly. As we know Power BI Visuals went through a lot of changes since its introduction. Therefore, its pretty logic to believe&lt;BR /&gt;that those modifications will have a certain impact on compatibility. As an example, if you take a simple code example like&lt;BR /&gt;the thermometer.ts code used in devTools online demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/spatney/4eb52930075a5e5be9af" target="_blank"&gt;https://gist.github.com/spatney/4eb52930075a5e5be9af&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you take this raw 'deprecated' code version and do a Cut &amp;amp; Paste in a new CLI generated &lt;STRONG&gt;src/visual.ts&lt;/STRONG&gt; file&lt;BR /&gt;this will NOT run right out of the box. When you try to package a .&lt;STRONG&gt;pbiviz&lt;/STRONG&gt;, chances are you'll even end up with a pretty similar&lt;BR /&gt;long list of errors scenario as shown in the picture above.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In my case, I did manage to refactor some old demo code versions mainly for testing.&amp;nbsp;I've dealt ablot with &lt;STRONG&gt;d3.js&lt;/STRONG&gt; in the past, so the idea wasn't really to replicate the code as is... but rather rebuilding in order to get a better understanding of the &lt;STRONG&gt;IVisual&lt;/STRONG&gt; logic. So I would basically gnerate a new CLI template all from scratch in Visual Studio Code, then add all libraries [using either typings and npm].&lt;BR /&gt;I then fragmented the old version code into small pieces [like this part ought to go in visual.ts, that other part ought go in capabiities.json...] and so on. this was a good learning exercise...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also had to refactor a bunch of minor things along the way like changing&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;private svg: D3.Selection;&lt;/STRONG&gt; &lt;/EM&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;private svg: d3.Selection&amp;lt;SVGElement&amp;gt;;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Approach and result may not be 100% perfect... though refactored codes work and I'm pleased with the reuslts I got so far...&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 00:01:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Edit-Custom-Visual-Developed-in-PowerBI-developer-tool-Online/m-p/91781#M3248</guid>
      <dc:creator>MawashiKid</dc:creator>
      <dc:date>2016-11-20T00:01:34Z</dc:date>
    </item>
  </channel>
</rss>

