简体   繁体   中英

How to show the tooltip for jfreecharts rendered as images on jsp

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM