<?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 AddToolTip Method in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/AddToolTip-Method/m-p/3004276#M40602</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        this.tooltipServiceWrapper.addTooltip(chart.selectAll('.bar'),
        (datapoint:unknown)=&amp;gt; Visual.getTooltipData(0),
        null);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I successfully display a 'static' tooltip as a PoC, by not using a selectorId, and hard passing 0, and passing static values back (for now):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    private static getTooltipData(value: any): VisualTooltipDataItem[] {
        return [{
            displayName: "test",//value.category,
            value: "55"//value.value.toString()//,
            // color: value.color,
            // header: "display"
        }];
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should prove everything else is set up correctly, My question is, whenever i try to use real dynamic data, the tooltop disapears and i can't seem to see anything wrong. I noticed the documentation is &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/add-tooltips#call-the-addtooltip-method" target="_self"&gt;wrong&lt;/A&gt;&amp;nbsp;(the example they show would not work, use my example instead) and &lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/main/Tutorial/ReportPageTooltips.md#applying-report-page-tooltips" target="_self"&gt;missing&amp;nbsp;&amp;nbsp;&lt;/A&gt;(clicking link on this page shows 404)..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But browing the &lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/main/src/barChart.ts" target="_self"&gt;source&lt;/A&gt;: It looks like i need to create a custom interface, and then manually push the array w/ my data? And generate a selecitonID?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation going over all of that? thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 19:13:54 GMT</pubDate>
    <dc:creator>hobbykitjr</dc:creator>
    <dc:date>2023-01-05T19:13:54Z</dc:date>
    <item>
      <title>AddToolTip Method</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/AddToolTip-Method/m-p/3004276#M40602</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        this.tooltipServiceWrapper.addTooltip(chart.selectAll('.bar'),
        (datapoint:unknown)=&amp;gt; Visual.getTooltipData(0),
        null);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I successfully display a 'static' tooltip as a PoC, by not using a selectorId, and hard passing 0, and passing static values back (for now):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    private static getTooltipData(value: any): VisualTooltipDataItem[] {
        return [{
            displayName: "test",//value.category,
            value: "55"//value.value.toString()//,
            // color: value.color,
            // header: "display"
        }];
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should prove everything else is set up correctly, My question is, whenever i try to use real dynamic data, the tooltop disapears and i can't seem to see anything wrong. I noticed the documentation is &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/add-tooltips#call-the-addtooltip-method" target="_self"&gt;wrong&lt;/A&gt;&amp;nbsp;(the example they show would not work, use my example instead) and &lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/main/Tutorial/ReportPageTooltips.md#applying-report-page-tooltips" target="_self"&gt;missing&amp;nbsp;&amp;nbsp;&lt;/A&gt;(clicking link on this page shows 404)..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But browing the &lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/main/src/barChart.ts" target="_self"&gt;source&lt;/A&gt;: It looks like i need to create a custom interface, and then manually push the array w/ my data? And generate a selecitonID?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation going over all of that? thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 19:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/AddToolTip-Method/m-p/3004276#M40602</guid>
      <dc:creator>hobbykitjr</dc:creator>
      <dc:date>2023-01-05T19:13:54Z</dc:date>
    </item>
  </channel>
</rss>

