<?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 Creating custom Chiclet Slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/834099#M21255</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using the Chiclet Slicer in my report, but need to comply with certain coloring and formatting conventions. The text color needs to be white, and the text within the chiclets needs to be left-aligned, to name a few. Now I know the chiclet slicers are open-sources, so I cloned the code and went to edit it. Now, I am trying to re-package the files so that I can import them as custom visuals in Power BI online.&lt;/P&gt;&lt;P&gt;My issue is that the 'pbiviz' command is not able to successfully run, despite very little being changed in the code itself. I have followed a number of tutorials that explain making custom visuals, but cannot package this one.&lt;/P&gt;&lt;P&gt;What is the issue I am having?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or tips would be appreciated. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 15:28:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-31T15:28:55Z</dc:date>
    <item>
      <title>Creating custom Chiclet Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/834099#M21255</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using the Chiclet Slicer in my report, but need to comply with certain coloring and formatting conventions. The text color needs to be white, and the text within the chiclets needs to be left-aligned, to name a few. Now I know the chiclet slicers are open-sources, so I cloned the code and went to edit it. Now, I am trying to re-package the files so that I can import them as custom visuals in Power BI online.&lt;/P&gt;&lt;P&gt;My issue is that the 'pbiviz' command is not able to successfully run, despite very little being changed in the code itself. I have followed a number of tutorials that explain making custom visuals, but cannot package this one.&lt;/P&gt;&lt;P&gt;What is the issue I am having?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or tips would be appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/834099#M21255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-31T15:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom Chiclet Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/834424#M21258</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Without getting detail of the output for your &lt;FONT face="courier new,courier"&gt;pbiviz&lt;/FONT&gt;&amp;nbsp;command, it's hard to provide targeted help.&amp;nbsp;Are you running &lt;FONT face="courier new,courier"&gt;pbiviz package&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;pbiviz start&lt;/FONT&gt;&amp;nbsp;when you get the error?&lt;/P&gt;&lt;P&gt;Here's my guess as to what you might need to get started correctly:&lt;/P&gt;&lt;P&gt;I presume that you have the latest version of the custom visuals SDK (3.1.x) installed?&lt;/P&gt;&lt;P&gt;If so, from looking at the &lt;A href="https://github.com/microsoft/PowerBI-visuals-ChicletSlicer/blob/master/pbiviz.json" target="_self"&gt;pbiviz.json in the GitHub repo&lt;/A&gt;, the visual is using version 1.13 of the SDK/API. So, instead of installing the latest version of the SDK (which is 2 versions higher than this and there are some breaking changes), you'll need to install the target version the visual was developed on. Instead of using this command to install the SDK:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;npm i power-bi-visuals-tools -g&lt;/LI-CODE&gt;&lt;P&gt;Run this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;npm i power-bi-visuals-tools@1.13 -g&lt;/LI-CODE&gt;&lt;P&gt;You will then need to re-initialise your certificate as per setup instructions, as the version has changed from the one you had installed.&lt;/P&gt;&lt;P&gt;If you haven't updated the Node.js packages required for the visual then run this afterwards:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;npm i&lt;/LI-CODE&gt;&lt;P&gt;Provided that these two pre-requisites have been fulfillled, you should be able to run &lt;FONT face="courier new,courier"&gt;pbiviz start&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;pbiviz package&lt;/FONT&gt; successfully.&lt;/P&gt;&lt;P&gt;If you're still having trouble getting this to run, please come back with your output and I'll try and have a look for you.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:57:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/834424#M21258</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-10-31T21:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom Chiclet Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/836562#M21280</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/5829"&gt;@DM&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to 'downgrade' by running the script:&lt;/P&gt;&lt;PRE&gt;npm install -g powerbi-visuals-tools@1.13&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I couldn't get the exact one that you suggested to run, but I rearranged and ran again with apparent success.&lt;/P&gt;&lt;P&gt;After navigating to the visual folder, my attempt to run the&lt;/P&gt;&lt;PRE&gt;pbiviz package&lt;/PRE&gt;&lt;P&gt;Was the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pbiviz_error.PNG" style="width: 859px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/205751iF1A6305C92311A70/image-size/large?v=v2&amp;amp;px=999" role="button" title="pbiviz_error.PNG" alt="pbiviz_error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:11:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/836562#M21280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T20:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom Chiclet Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/836574#M21281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/56990"&gt;@LC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I forgot to mention to run this after updating the SDK:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pbiviz update&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To ensure that the SDK downloads the correct version of the API code into the &lt;FONT face="courier new,courier"&gt;.api&lt;/FONT&gt; folder (which is how the older version stores the API locally... the newer version uses the &lt;FONT face="courier new,courier"&gt;node_modules&lt;/FONT&gt; folder).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will potentially require another refresh of the certificate if you want to use &lt;FONT face="courier new,courier"&gt;pbiviz start&lt;/FONT&gt; afterwards.&lt;/P&gt;&lt;P&gt;You should then be able to run &lt;FONT face="courier new,courier"&gt;pbiviz package.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;One other thing to consider if you're packaging:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Chiclet Slicer is a published visual, so if you try to load it into either Power BI Desktop or the Power BI Service, the version in the marketplace will always be loaded.&lt;/LI&gt;&lt;LI&gt;This is to ensure that for visuals in the marketplace, the current version is always served, so that you don't have to worry about manually updating your reports.&lt;/LI&gt;&lt;LI&gt;You will need to assign a new &lt;FONT face="courier new,courier"&gt;guid&lt;/FONT&gt;&lt;SPAN&gt; if you're rolling your own visual so that you can test it.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Open &lt;FONT face="courier new,courier"&gt;pbiviz.json&lt;/FONT&gt;, and find the &lt;FONT face="courier new,courier"&gt;guid&lt;/FONT&gt; field under the &lt;FONT face="courier new,courier"&gt;visual&lt;/FONT&gt; object key. For reference, &lt;A href="https://github.com/microsoft/PowerBI-visuals-ChicletSlicer/blob/master/pbiviz.json#L5" target="_self"&gt;here's the corresponding line&lt;/A&gt; in the Chiclet Slicer source code.&lt;/LI&gt;&lt;LI&gt;Modify this number to something unique - you can probably add a '1' to it and that should be sufficient.&lt;/LI&gt;&lt;LI&gt;You might also want to change other parts of the file, e.g. the &lt;FONT face="courier new,courier"&gt;displayName&lt;/FONT&gt;, so that you know the visual is not the original Chiclet Slicer when you see it in the visual palette (particularly if you have the original loaded in there too).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hopfully this should be the rest of what you need. Apologies for missing that out originally.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:24:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-Chiclet-Slicer/m-p/836574#M21281</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-11-04T20:24:11Z</dc:date>
    </item>
  </channel>
</rss>

