anitha Posted May 4, 2010 Report Share Posted May 4, 2010 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. Quote Link to comment Share on other sites More sharing options...
anitha Posted May 5, 2010 Author Report Share Posted May 5, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.