<?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: How to add a tooltip to a D3.js based map? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-a-tooltip-to-a-D3-js-based-map/m-p/1629783#M1232561</link>
    <description>&lt;P&gt;Willy, I am not much help, but I have hollered at a coworker to see if they can have a look, may take another day or two, shout if you have any updates on things, otherwise hopefully he can have a look and let you know if he has any ideas&amp;nbsp; for you.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 21:53:17 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-09-30T21:53:17Z</dc:date>
    <item>
      <title>How to add a tooltip to a D3.js based map?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-tooltip-to-a-D3-js-based-map/m-p/1626146#M1232558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add a very simple map to my QlikView dashboard using D3.js. It is based on this example:&amp;nbsp;&amp;nbsp;&lt;A href="https://bl.ocks.org/tiffylou/88f58da4599c9b95232f5c89a6321992" target="_blank" rel="noopener"&gt;https://bl.ocks.org/tiffylou/88f58da4599c9b95232f5c89a6321992&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My demo code is located in this GitHub repo:&amp;nbsp;&lt;A href="https://github.com/FrieseWoudloper/d3-map-in-qlikview" target="_blank" rel="noopener"&gt;https://github.com/FrieseWoudloper/d3-map-in-qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My question is concerning the tooltip. I tried to add it using this code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="javascript"&gt;          .on(&lt;SPAN class="string"&gt;"mouseover"&lt;/SPAN&gt;, &lt;SPAN class="function"&gt;&lt;SPAN class="keyword"&gt;function&lt;/SPAN&gt;(&lt;SPAN class="params"&gt;d&lt;/SPAN&gt;) &lt;/SPAN&gt;{    
            tooltip.transition()    
            .duration(&lt;SPAN class="number"&gt;200&lt;/SPAN&gt;)    
            .style(&lt;SPAN class="string"&gt;"opacity"&lt;/SPAN&gt;, &lt;SPAN class="number"&gt;.9&lt;/SPAN&gt;);    
            tooltip.html(d.properties.statcode)  
            .style(&lt;SPAN class="string"&gt;"left"&lt;/SPAN&gt;, (d3.event.pageX) + &lt;SPAN class="string"&gt;"px"&lt;/SPAN&gt;)   
            .style(&lt;SPAN class="string"&gt;"top"&lt;/SPAN&gt;, (d3.event.pageY - &lt;SPAN class="number"&gt;28&lt;/SPAN&gt;) + &lt;SPAN class="string"&gt;"px"&lt;/SPAN&gt;);  
          })  &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However, this doesn't work. When I leave out the "left" en "top" style elements, the tooltip shows up in the down left corner from the dashboard object. How do I make them appear top left from the path the user is hovering above?&lt;/P&gt;&lt;P&gt;Willy&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;It seems that the location of the tooltip label is relative to the entire dashboard canvas, not to the object window. Is that the cause of my problem? How should I fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-tooltip-to-a-D3-js-based-map/m-p/1626146#M1232558</guid>
      <dc:creator>WillyTadema</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a tooltip to a D3.js based map?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-tooltip-to-a-D3-js-based-map/m-p/1629783#M1232561</link>
      <description>&lt;P&gt;Willy, I am not much help, but I have hollered at a coworker to see if they can have a look, may take another day or two, shout if you have any updates on things, otherwise hopefully he can have a look and let you know if he has any ideas&amp;nbsp; for you.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 21:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-tooltip-to-a-D3-js-based-map/m-p/1629783#M1232561</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-30T21:53:17Z</dc:date>
    </item>
  </channel>
</rss>

