<?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: Add tooltip page in ChicletSlicer? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/639439#M18734</link>
    <description>&lt;P&gt;I think you can use&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="pl-smi"&gt;slicerBody&lt;/SPAN&gt;.&lt;SPAN class="pl-en"&gt;selectAll&lt;/SPAN&gt;(&lt;SPAN class="pl-smi"&gt;ChicletSlicer&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;ItemContainerSelector&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;selector&lt;/SPAN&gt;)&lt;/STRONG&gt; instead of&amp;nbsp;&lt;SPAN&gt;this.&lt;/SPAN&gt;&lt;STRONG&gt;barContainer&lt;/STRONG&gt;&lt;SPAN&gt;.selectAll('.&lt;/SPAN&gt;&lt;U&gt;bar&lt;/U&gt;&lt;SPAN&gt;').&lt;/SPAN&gt;&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 14:43:41 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2019-03-07T14:43:41Z</dc:date>
    <item>
      <title>Add tooltip page in ChicletSlicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/636185#M18693</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm new in the community and I would like to know if it's possible add the tooltip page functionality.&lt;/P&gt;&lt;P&gt;I know it's possible in bar and column charts but I don't know if it is in slicers.&lt;/P&gt;&lt;P&gt;I'm new in Typescript and the complexity is a bit too high for me at the moment (the custom visual)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got to add the funcionality as it's displayed in Power BI and I can choose the tooltip page too, but it's not working because the code that displays the "canvas" uses what is called "barContainer" in all examples and, in this specific case, it does not exist and I don't know how to emaulate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this.tooltipServiceWrapper.addTooltip(this.&lt;U&gt;barContainer&lt;/U&gt;.selectAll('.bar'), &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(tooltipEvent: TooltipEventArgs&amp;lt;number&amp;gt;) =&amp;gt; BarChart.getTooltipData(tooltipEvent.data),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(tooltipEvent: TooltipEventArgs&amp;lt;number&amp;gt;) =&amp;gt; null);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The class "bar" is not set I believe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been searching a lot of documentation but I don't know how to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-report-page-tooltips/" target="_blank" rel="noopener"&gt;https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-report-page-tooltips/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-tooltips/" target="_blank" rel="noopener"&gt;https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-tooltips/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe it has to be possible but I don't know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/636185#M18693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-04T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add tooltip page in ChicletSlicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/637919#M18709</link>
      <description>&lt;P&gt;You just need to add "tooltips" into capabilities.json as shown &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-report-page-tooltips/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An additional step is to pass a&amp;nbsp;SelectionId to &lt;STRONG&gt;tooltipService&lt;/STRONG&gt; or &lt;STRONG&gt;tooltipServiceWrapper.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you using? tooltipService or tooltipServiceWrapper?&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:21:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/637919#M18709</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-03-06T07:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add tooltip page in ChicletSlicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/638252#M18713</link>
      <description>&lt;P&gt;Thanks for your answer&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the "tooltips" into capabilities.json and in the PBI chicletSlicer "Format" options is beign shown but it's not working yet.&lt;/P&gt;&lt;P&gt;I want to use the tooltip page functionality but I'm not sure which one of these two (tooltipService or tooltipServiceWrapper) I do have to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me with which one can I achieve my purpose? Also how can I pass the SelectionId correctly? The examples are for bar graphs but I don't have the same properties and neither their values. I tried to emulate it by copying/pasting but nothing was achieved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I highlighted the missing properties in the existing code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this.tooltipServiceWrapper.addTooltip(this.&lt;STRONG&gt;barContainer&lt;/STRONG&gt;.selectAll('.&lt;U&gt;bar&lt;/U&gt;'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (tooltipEvent: TooltipEventArgs&amp;lt;&lt;STRONG&gt;BarChartDataPoint&lt;/STRONG&gt;&amp;gt;) =&amp;gt; this.getTooltipData(tooltipEvent.data),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (tooltipEvent: TooltipEventArgs&amp;lt;&lt;STRONG&gt;BarChartDataPoint&lt;/STRONG&gt;&amp;gt;) =&amp;gt; tooltipEvent.data.selectionId&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a barContainer property like as this custom visual&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-sampleBarChart" target="_blank" rel="noopener"&gt;example&lt;/A&gt;, but it's a graph and I face many problems to replicate it.&lt;/P&gt;&lt;P&gt;I added the BarChartDataPoint interface also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which should be my next step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 13:13:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/638252#M18713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T13:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add tooltip page in ChicletSlicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/639439#M18734</link>
      <description>&lt;P&gt;I think you can use&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="pl-smi"&gt;slicerBody&lt;/SPAN&gt;.&lt;SPAN class="pl-en"&gt;selectAll&lt;/SPAN&gt;(&lt;SPAN class="pl-smi"&gt;ChicletSlicer&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;ItemContainerSelector&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;selector&lt;/SPAN&gt;)&lt;/STRONG&gt; instead of&amp;nbsp;&lt;SPAN&gt;this.&lt;/SPAN&gt;&lt;STRONG&gt;barContainer&lt;/STRONG&gt;&lt;SPAN&gt;.selectAll('.&lt;/SPAN&gt;&lt;U&gt;bar&lt;/U&gt;&lt;SPAN&gt;').&lt;/SPAN&gt;&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:43:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/639439#M18734</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-03-07T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add tooltip page in ChicletSlicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/639562#M18737</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I applied it but nothing appears, I guess that I have to change something in these 3 lines of code.&lt;/P&gt;&lt;P&gt;I'm sorry but even though I try to understand it and fix it I can't.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;this.tooltipServiceWrapper.addTooltip(this.slicerBody.selectAll(ChicletSlicer.ItemContainerSelector.selector),
                (tooltipEvent: TooltipEventArgs) =&amp;gt; this.getTooltipData(tooltipEvent.data),
                (tooltipEvent: TooltipEventArgs) =&amp;gt; tooltipEvent.data.selectionId
            );&lt;/PRE&gt;&lt;PRE&gt;interface BarChartDataPoint {
        value: PrimitiveValue;
        category: string;
        color: string;
        strokeColor: string;
        strokeWidth: number;
        selectionId: ISelectionId;
    };&lt;/PRE&gt;&lt;PRE&gt;private getTooltipData(value: any): VisualTooltipDataItem[] {
            let language = getLocalizedString(this.locale, "LanguageKey");
            return [{
                displayName: value.category,
                value: value.value.toString(),
                color: value.color,
                header: language &amp;amp;&amp;amp; "displayed language " + language
            }];
        }&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What do I have to fix?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2019 16:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/639562#M18737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T16:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add tooltip page in ChicletSlicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/3691395#M49494</link>
      <description>&lt;P&gt;I am facing the same challenge. Did you manage to do it?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 15:48:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-tooltip-page-in-ChicletSlicer/m-p/3691395#M49494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-09T15:48:00Z</dc:date>
    </item>
  </channel>
</rss>

