Jump to content
Software FX Community

interactive png(capture mouse events) (ChartFX for Java 6.5)


Recommended Posts


We are using Chart class to create charts and export to PNG format(using a ByteArrayOutputStream) and then write out the bytes usingservletoutputstream in a Servlet. The charts render fine on the web page but I am having a hard time trying to get mouse interaction after rendering the images in PNG format (essentially trying to capture mouse click or mouse over events).  Is there any setting I am missing? Or do I need to use ChartServer class and render as FLASH to get the required functionality? Any examples/samples related to the topic that I can look at?

 Thanks in advance.

Link to comment
Share on other sites

Unfortunately you can't do this if you are using Chart object; this because when you export the chart as an Image, you are only producing a simple image without any code. To capture events from the image, you must use ChartServer object so when you export the chart, it will be exported with the required javascript to handle interactivity.

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.

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...