{"id":522,"date":"2022-08-30T15:02:45","date_gmt":"2022-08-30T15:02:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/tooltip-over-a-raphael-animation-why-wont-it-work-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:02:45","modified_gmt":"2022-08-30T15:02:45","slug":"tooltip-over-a-raphael-animation-why-wont-it-work-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/tooltip-over-a-raphael-animation-why-wont-it-work-collection-of-common-programming-errors\/","title":{"rendered":"Tooltip over a Raphael animation &#8211; Why won&#39;t it work?-Collection of common programming errors"},"content":{"rendered":"<p>So I have a piechart drawn with Raphael, I&#8217;m trying to create a tooltip that displays Raphael text when I hover over a segment of my pie chart. The event handler hover works fine, but I cant change the coordinates of the tooltip text to match with cursor coordinates. Please see the code here:<\/p>\n<p>http:\/\/jsfiddle.net\/p7U2K\/1\/<\/p>\n<p>I&#8217;ve tried<\/p>\n<pre><code>posx = e.pageX - $(document).scrollLeft() - $('#holder').offset().left;\n<\/code><\/pre>\n<p>for my x-coordinate, but it&#8217;s coming back as undefined. What am I doing wrong?<\/p>\n<p>Thanks for your help!<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 20:17:58. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>So I have a piechart drawn with Raphael, I&#8217;m trying to create a tooltip that displays Raphael text when I hover over a segment of my pie chart. The event handler hover works fine, but I cant change the coordinates of the tooltip text to match with cursor coordinates. Please see the code here: http:\/\/jsfiddle.net\/p7U2K\/1\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-522","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=522"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/522\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}