<?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: Tooltips custom visuals table in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/760615#M2409</link>
    <description>&lt;P&gt;Look at the code from the link that I provided you.&lt;/P&gt;&lt;PRE&gt;this.tooltipServiceWrapper.addTooltip&amp;lt;LineDotPoint&amp;gt;(
     dotsSelectionMerged,
     (tooltipEvent: TooltipEventArgs&amp;lt;LineDotPoint&amp;gt;) =&amp;gt; {
         return this.getTooltipDataItems(tooltipEvent.data);
    }
);&lt;/PRE&gt;&lt;P&gt;You just need to call method addTooltip and provide couple of arguments there.&lt;/P&gt;&lt;P&gt;The first argument is d3 selection that is a target for a tooltip.&lt;/P&gt;&lt;P&gt;The second argument is a callback function that has to return an array of objects that contain tooltip inforamation.&lt;/P&gt;&lt;P&gt;For instance, you could write even something simple like below to test how it works:&lt;/P&gt;&lt;PRE&gt;        this.tooltipServiceWrapper.addTooltip(
            warning.title, // target d3 selection, replace by your selection
            () =&amp;gt; {
                return [{
                    displayName: null,
                    value: "some text that will be displayed in a tooltip"
                }];
            });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 15:11:24 GMT</pubDate>
    <dc:creator>v-evelk</dc:creator>
    <dc:date>2019-08-07T15:11:24Z</dc:date>
    <item>
      <title>Tooltips custom visuals table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/732067#M2332</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to create a tooltips for table custom visual, but i have a problem.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tooltips.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/175405iFA67B0084E2E6A83/image-size/large?v=v2&amp;amp;px=999" role="button" title="tooltips.PNG" alt="tooltips.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My table is type htmlelement,&amp;nbsp;I looked at the tutorial for creating tooltips &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-report-page-tooltips/" target="_self"&gt;here&lt;/A&gt; but the example is not put in full.&lt;/P&gt;&lt;P&gt;I want information about the defintion of function addTooltip or maybe full example please because that's where the problem lies&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tooltips 2.PNG" style="width: 887px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/175406iABD4A23C3145CF9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="tooltips 2.PNG" alt="tooltips 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 19:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/732067#M2332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-04T19:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips custom visuals table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/732923#M2335</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could look for the answer in one of our public repository, &lt;A href="https://github.com/microsoft/powerbi-visuals-linedotchart/blob/53d7562534a30e28c2a4a766516dea9ab1df5e3e/src/visual.ts#L1101" target="_self"&gt;this one&lt;/A&gt;, for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 15:52:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/732923#M2335</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-07-05T15:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips custom visuals table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/732962#M2338</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/112988"&gt;@v-evelk&lt;/a&gt;,&amp;nbsp;&lt;FONT&gt;Thanks for the example but it does not help me to solve the problem. I did not mention it but I use version 3.1.1 of power bi tools. i want to use the tooltips on a datatable jquery, but i have errors like that :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 909px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/175678iAF978D8B2D3B5081/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;I consulted a lot of examples online and I tried to understand then the reproduires but I can not&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 16:40:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/732962#M2338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltips custom visuals table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/760615#M2409</link>
      <description>&lt;P&gt;Look at the code from the link that I provided you.&lt;/P&gt;&lt;PRE&gt;this.tooltipServiceWrapper.addTooltip&amp;lt;LineDotPoint&amp;gt;(
     dotsSelectionMerged,
     (tooltipEvent: TooltipEventArgs&amp;lt;LineDotPoint&amp;gt;) =&amp;gt; {
         return this.getTooltipDataItems(tooltipEvent.data);
    }
);&lt;/PRE&gt;&lt;P&gt;You just need to call method addTooltip and provide couple of arguments there.&lt;/P&gt;&lt;P&gt;The first argument is d3 selection that is a target for a tooltip.&lt;/P&gt;&lt;P&gt;The second argument is a callback function that has to return an array of objects that contain tooltip inforamation.&lt;/P&gt;&lt;P&gt;For instance, you could write even something simple like below to test how it works:&lt;/P&gt;&lt;PRE&gt;        this.tooltipServiceWrapper.addTooltip(
            warning.title, // target d3 selection, replace by your selection
            () =&amp;gt; {
                return [{
                    displayName: null,
                    value: "some text that will be displayed in a tooltip"
                }];
            });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltips-custom-visuals-table/m-p/760615#M2409</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-08-07T15:11:24Z</dc:date>
    </item>
  </channel>
</rss>

