Tooltip over a Raphael animation – Why won't it work?-Collection of common programming errors
So I have a piechart drawn with Raphael, I’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/
I’ve tried
posx = e.pageX - $(document).scrollLeft() - $('#holder').offset().left;
for my x-coordinate, but it’s coming back as undefined. What am I doing wrong?
Thanks for your help!
Originally posted 2013-11-09 20:17:58.