<?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 Tooltip is not updating in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Tooltip-is-not-updating/m-p/408712#M12182</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to add tooltip in my custom visual. For that I have written follwoing code.&lt;/P&gt;&lt;PRE&gt;// this if condition is inside update method&lt;BR /&gt;if (this.tooltipSettings.show == true) {

                    const tooltipDataItems = [];
                    if (this.tooltipSettings.title != null || this.tooltipSettings.content != null) {
                        tooltipDataItems.push({
                            "displayName": this.tooltipSettings.title,
                            "value": this.tooltipSettings.content
                        });
                    }
                    &lt;BR /&gt;                    // adding measure values into array which will be used for show method&lt;BR /&gt;                    // following code will only add measure which are part of tooltip data field
                    tableData.columns.forEach((element, index) =&amp;gt; {
                        if (element.roles.tooltipMeasures == true) {
                            tooltipDataItems.push({
                                "displayName": tableData.columns[index].displayName,
                                "value": tableData.rows[0][index],
                            });
                        }
                    });

                    this.root.on("mousemove", (e) =&amp;gt; {
                        const mouseX = d3.mouse(this.root.node())[0];
                        const mouseY = d3.mouse(this.root.node())[1];

                        this.host.tooltipService.show({
                            "dataItems": tooltipDataItems,
                            "identities": [],
                            "coordinates": [mouseX, mouseY],
                            "isTouchEvent": true
                        });
                    });
                }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fetching data from one measure field in which I can add multiple measures and pushing them into&amp;nbsp;an array for VisualToolTipDataItem.&lt;/P&gt;&lt;P&gt;The problem I am having is that the tooltip is not updating unless I refresh the page. See following example.&lt;/P&gt;&lt;P&gt;I added Tax Rate in in blank tooltip data field and I am able to see the tooltip as shown below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1.png" style="width: 451px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93925iAC60554E1D1FBA0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;Then I added Profit into field but still I can only see Tax Rate on tooltip. See below screen shot&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2.png" style="width: 426px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93926i680C95E383085508/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After reloading the whole page, I was able to see both measures on tooltip as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="3.png" style="width: 444px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93927i56D8D133B08951CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used similiar approach to show tooltip in the past and that time it was working but now it is not working properly.&lt;/P&gt;&lt;P&gt;Can anyone tell me what is happening here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 10:13:45 GMT</pubDate>
    <dc:creator>bhavesh-jadav</dc:creator>
    <dc:date>2018-05-02T10:13:45Z</dc:date>
    <item>
      <title>Tooltip is not updating</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tooltip-is-not-updating/m-p/408712#M12182</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to add tooltip in my custom visual. For that I have written follwoing code.&lt;/P&gt;&lt;PRE&gt;// this if condition is inside update method&lt;BR /&gt;if (this.tooltipSettings.show == true) {

                    const tooltipDataItems = [];
                    if (this.tooltipSettings.title != null || this.tooltipSettings.content != null) {
                        tooltipDataItems.push({
                            "displayName": this.tooltipSettings.title,
                            "value": this.tooltipSettings.content
                        });
                    }
                    &lt;BR /&gt;                    // adding measure values into array which will be used for show method&lt;BR /&gt;                    // following code will only add measure which are part of tooltip data field
                    tableData.columns.forEach((element, index) =&amp;gt; {
                        if (element.roles.tooltipMeasures == true) {
                            tooltipDataItems.push({
                                "displayName": tableData.columns[index].displayName,
                                "value": tableData.rows[0][index],
                            });
                        }
                    });

                    this.root.on("mousemove", (e) =&amp;gt; {
                        const mouseX = d3.mouse(this.root.node())[0];
                        const mouseY = d3.mouse(this.root.node())[1];

                        this.host.tooltipService.show({
                            "dataItems": tooltipDataItems,
                            "identities": [],
                            "coordinates": [mouseX, mouseY],
                            "isTouchEvent": true
                        });
                    });
                }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fetching data from one measure field in which I can add multiple measures and pushing them into&amp;nbsp;an array for VisualToolTipDataItem.&lt;/P&gt;&lt;P&gt;The problem I am having is that the tooltip is not updating unless I refresh the page. See following example.&lt;/P&gt;&lt;P&gt;I added Tax Rate in in blank tooltip data field and I am able to see the tooltip as shown below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1.png" style="width: 451px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93925iAC60554E1D1FBA0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;Then I added Profit into field but still I can only see Tax Rate on tooltip. See below screen shot&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2.png" style="width: 426px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93926i680C95E383085508/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After reloading the whole page, I was able to see both measures on tooltip as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="3.png" style="width: 444px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93927i56D8D133B08951CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used similiar approach to show tooltip in the past and that time it was working but now it is not working properly.&lt;/P&gt;&lt;P&gt;Can anyone tell me what is happening here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 10:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tooltip-is-not-updating/m-p/408712#M12182</guid>
      <dc:creator>bhavesh-jadav</dc:creator>
      <dc:date>2018-05-02T10:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip is not updating</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tooltip-is-not-updating/m-p/408806#M12186</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;value&lt;/STRONG&gt; property can not contain numbers as per &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/e811da73de182b8e942eb44e25a81bd81f1c9050/templates/visuals/.api/v1.11.0/PowerBI-visuals.d.ts#L1297" target="_blank"&gt;declaration&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;To fix this issue you must convert numbers to strings explicitly.&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>Wed, 02 May 2018 12:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tooltip-is-not-updating/m-p/408806#M12186</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-05-02T12:23:55Z</dc:date>
    </item>
  </channel>
</rss>

