<?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: mouseover not working on g.append('rect') in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/521497#M16092</link>
    <description>&lt;P&gt;Hi&amp;nbsp; Ignat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to respond!&lt;/P&gt;&lt;P&gt;When i don't use PowerBi but just launch it in the browser without any powerbi plugins it works fine. However when wrapping into powerbi it doesn't work. I did previously have some console logs in the event handler and they showed fine in the browser. However&amp;nbsp; I don't know how to see the logs in powerBi Studio. So i deployed the custom visulatization to the online powerBi and there i don't see any console logs. So i think somtehing is catching the event because when i move over the graph the pointer changes to a hand. Is there a way to set event stopPropagation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Emanouil&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 16:59:08 GMT</pubDate>
    <dc:creator>ekazaltzis</dc:creator>
    <dc:date>2018-09-20T16:59:08Z</dc:date>
    <item>
      <title>mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/516301#M15944</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I developed a custom visualization started from the BarChart example. I would like to have my own tooltips so i I&amp;nbsp;append a 'rect' with on('mouseover'). This is working great in&amp;nbsp;standalone browser but when i package and deploy to PowerBI the onmouse is not triggered. I suppose there are some setttings to control this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Emanouil&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 16:14:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/516301#M15944</guid>
      <dc:creator>ekazaltzis</dc:creator>
      <dc:date>2018-09-14T16:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/517566#M15987</link>
      <description>&lt;P&gt;Did you set rect size and fill? Otherwize, events might go though element.&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>Mon, 17 Sep 2018 13:09:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/517566#M15987</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-09-17T13:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/520356#M16070</link>
      <description>&lt;P&gt;Hi, Yes according to me I did. Here is the source code for rendering the labels:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        private renderLabel(g, backColor, point, prop,x,y) {
                var div = d3.select("body").append("div")	
                .attr("class", "tooltip")				
                .style("opacity", 0);
        
                // create rectangles for text
                g.append("rect")
                .datum(point)
                .attr("height", 15)
                .attr("width", 25)
                .attr("fill", backColor)
//                .attr('opacity', '.3')
                .attr("transform", function(d){ return "translate("+ (x(&amp;lt;number&amp;gt;d.xAxis)-13) + "," +(y(&amp;lt;number&amp;gt;d[prop])-6)+")"})
                .on("mouseenter", (function(d){
                    div.transition()		
                    .duration(200)		
                    .style("opacity", .9);		
                    div.html("xAxis:"+ d.xAxis + "&amp;lt;br/&amp;gt;"  + "yAxis:" + d[prop])	
                    .style("left", x(d.xAxis) + "px")		
                    .style("top", y(d[prop]) + "px");	
                        
                }))                    
                .on("mouseout", (function(){
                    div.transition()		
                    .duration(500)		
                    .style("opacity", 0);	
                }));                    

                // Add text
                let text= g.append("text")
                .datum(point)
                .attr("x", function(d) { return x(&amp;lt;number&amp;gt;d.xAxis) - 10; })
                .attr("y", function(d) { return y(&amp;lt;number&amp;gt;d[prop]) - 5 })
                .attr("dy", ".70em")
//                .attr("text-anchor", "middle")  
                .style('fill', 'black')
                .text(function(d) { return &amp;lt;number&amp;gt;d[prop]; })
        }

    }    &lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 20:27:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/520356#M16070</guid>
      <dc:creator>ekazaltzis</dc:creator>
      <dc:date>2018-09-19T20:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/520788#M16075</link>
      <description>&lt;P&gt;Code looks good to me. Have you tried to add &lt;STRONG&gt;console.log&lt;/STRONG&gt; into event handlers to confirm it is (not) fired?&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, 20 Sep 2018 07:14:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/520788#M16075</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-09-20T07:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/521497#M16092</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Ignat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to respond!&lt;/P&gt;&lt;P&gt;When i don't use PowerBi but just launch it in the browser without any powerbi plugins it works fine. However when wrapping into powerbi it doesn't work. I did previously have some console logs in the event handler and they showed fine in the browser. However&amp;nbsp; I don't know how to see the logs in powerBi Studio. So i deployed the custom visulatization to the online powerBi and there i don't see any console logs. So i think somtehing is catching the event because when i move over the graph the pointer changes to a hand. Is there a way to set event stopPropagation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Emanouil&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:59:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/521497#M16092</guid>
      <dc:creator>ekazaltzis</dc:creator>
      <dc:date>2018-09-20T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/522016#M16100</link>
      <description>&lt;P&gt;Interesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share whole source code to investigate the issue from our end?&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>Fri, 21 Sep 2018 07:18:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/522016#M16100</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-09-21T07:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: mouseover not working on g.append('rect')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/735703#M19929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was this issue ever resolved?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:17:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/mouseover-not-working-on-g-append-rect/m-p/735703#M19929</guid>
      <dc:creator>somayaji</dc:creator>
      <dc:date>2019-07-09T19:17:39Z</dc:date>
    </item>
  </channel>
</rss>

