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

谁说我不能喝 提交于 2019-12-25 03:38:16

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/8814293/how-to-show-the-tooltip-for-jfreecharts-rendered-as-images-on-jsp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!