<?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: Creating pbiviz package from Custom Visual using Gulp in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/435696#M1121</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;- thank you for the reply.&amp;nbsp; I have reached out to Enlighten.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will then either convert the visual from the legacy format to the new format, or edit the pbiviz.json file (its a minor color change).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what format the colour is returned in json:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var m = e.getColor(h.toString());&lt;/PRE&gt;&lt;P&gt;I want to replace with something like:&lt;/P&gt;&lt;PRE&gt;var m=\"#ED1C24\";&lt;/PRE&gt;&lt;P&gt;which does not work (visual is returned in black, irrespective of hex code).&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2018 15:24:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-08T15:24:45Z</dc:date>
    <item>
      <title>Creating pbiviz package from Custom Visual using Gulp</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/433928#M1109</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made some changes to the great&amp;nbsp;Power BI Aquarium visual:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Best-Visual-Contest/Power-BI-Aquarium/cns-p/7233" target="_blank"&gt;https://community.powerbi.com/t5/Best-Visual-Contest/Power-BI-Aquarium/cns-p/7233&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now need to create the .pbiviz package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command:&lt;/P&gt;&lt;PRE&gt;gulp package&lt;/PRE&gt;&lt;P&gt;gives the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[16:33:20] Using gulpfile ~\Documents\Power BI\Dev Custom Visuals\PowerBI-visuals-master\gulpfile.js
[16:33:21] Task 'package' is not in your gulpfile
[16:33:21] Please check the documentation for proper gulpfile formatting&lt;/PRE&gt;&lt;P&gt;"gulp build" and "gulp run:playground" function correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have installed&amp;nbsp;gulp@3.9.0, but no luck with "gulp package"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; Do I need to create a new bundle.json file as described at: &lt;A href="http://amolpandey.com/2016/08/02/powerbi-how-to-create-pbiviz-file-custom-visualization" target="_self"&gt;http://amolpandey.com/2016/08/02/powerbi-how-to-create-pbiviz-file-custom-visualization&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/433928#M1109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-06T17:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pbiviz package from Custom Visual using Gulp</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/434408#M1115</link>
      <description>&lt;P&gt;This is the old way of building packages that no longer supported. Instead of gulp Custom Visuals use &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools" target="_blank"&gt;PBIVIZ &lt;/A&gt;nowadays.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'd recommend to contact&amp;nbsp;&lt;STRONG&gt;sales@enlighten.co.nz&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;verne.roberts@enlighten.co.nz&lt;/STRONG&gt; who owns source code.&lt;/P&gt;
&lt;P&gt;Probably he will share the updated code that uses PBIVIZ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, you would need to convert code to PBIVIZ format by yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 08:10:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/434408#M1115</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-06-07T08:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pbiviz package from Custom Visual using Gulp</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/435696#M1121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;- thank you for the reply.&amp;nbsp; I have reached out to Enlighten.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will then either convert the visual from the legacy format to the new format, or edit the pbiviz.json file (its a minor color change).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what format the colour is returned in json:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var m = e.getColor(h.toString());&lt;/PRE&gt;&lt;P&gt;I want to replace with something like:&lt;/P&gt;&lt;PRE&gt;var m=\"#ED1C24\";&lt;/PRE&gt;&lt;P&gt;which does not work (visual is returned in black, irrespective of hex code).&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/435696#M1121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-08T15:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pbiviz package from Custom Visual using Gulp</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/436671#M1127</link>
      <description>&lt;P&gt;The getColor method returns an instance of &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/d9a0d21f60b9e9831f87c37cb7a4380f4c4588da/templates/visuals/.api/v1.12.0/PowerBI-visuals.d.ts#L1253" target="_blank"&gt;IColorInfo&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To fix the issue you should return an object like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  value: "#ED1C24"
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 07:36:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/436671#M1127</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-06-11T07:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pbiviz package from Custom Visual using Gulp</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/439152#M1148</link>
      <description>&lt;P&gt;Gulpfile.js needs a line something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;gulp.task('package', () =&amp;gt; {
    // Zip to .pbiviz file
    gulp.src('dist/**')
        .pipe(zip('MyModule.pbiviz'))
        .pipe(gulp.dest('.'));
});&lt;/PRE&gt;&lt;P&gt;to create the package.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/439152#M1148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pbiviz package from Custom Visual using Gulp</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/440049#M1152</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;We'd recommned not to use legacy API based visuals and tools as they're almost deprecated.&lt;/P&gt;
&lt;P&gt;Please consider migration to &lt;A href="https://github.com/Microsoft/PowerBI-visuals" target="_blank"&gt;PBIVIZ &lt;/A&gt;tools instead of gulp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Creating-pbiviz-package-from-Custom-Visual-using-Gulp/m-p/440049#M1152</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-06-14T16:24:51Z</dc:date>
    </item>
  </channel>
</rss>

