Reputation: 189
I am using JFreeChart, and I am rendering the chart as an image using a servlet via JSP. I saw the tooltips while using a chart frame. How can I display tooltips on the JFreeChart image. Please help me; it's important.
Upvotes: 0
Views: 2002
Reputation: 205775
In a servlet/JSP environment, the dynamic features of a chart are unavailable. For tooltips, you can achieve a similar effect using a label generator, shown here. Of course you can supply any desired request parameters to the servlet, at the expense of re-generating the chart with each new request.
For an improved user experience, consider deploying your chart using Java Web Start, in addition to offering the static image via JSP. This related example may suggest the basic possibilities.
Upvotes: 2