Jump to content
Software FX Community

Onmouseover event not firing while using tooltips


anitha

Recommended Posts

I need to get a tooltip over the datapoints of png chart created using Chartfx7.0. I used the following piece of code.

ch.setRenderFormat(imagetype);

ch.setToolTipFormat("?',%S,%N,'" + imageMapName + "','");

ch.getAllSeries().getLink().setReload(false);

ch.getImageSettings().setInteractive(true);

ch.getImageSettings().setToolTips(ImageToolTipStyle.WITH_MOUSE);

ch.getAllSeries().getLink().setUrl(jumpURLBase+jumpURLParameters);

and got the area tag as follows

<area shape="poly" coords="654,16,654,20,680,20,680,16" href="javascript:DoDrillDown(0,22)" onmouseout="popupoff()" onmouseover="popupon('?',0,22,'ImageAvMap','',event)" />

But my onmouseover event is not getting fired when i move the mouse over the datapoints. I have written the popupon and popupoff functions correctly.

Link to comment
Share on other sites

The onmouseover event got fired and I got the tooltip. Actually the map tag name and the usemap attribute value of the img tag( obtained using the method "renderToStream(OutputStream content, Writer imgMap, Writer htmlTag)" ) were not matching and that was the reason for mouseover event not getting fired.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...