如何在jsp上显示以图像形式呈现的jfreecharts的工具提示 [英] How to show the tooltip for jfreecharts rendered as images on jsp

查看:29
本文介绍了如何在jsp上显示以图像形式呈现的jfreecharts的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JFreeChart,并且正在通过JSP使用servlet将图表呈现为图像.我在使用图表框架时看到了工具提示.如何在JFreeChart图像上显示工具提示.请帮我;这很重要.

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.

推荐答案

在servlet/JSP环境中,图表的动态功能不可用.对于工具提示,您可以使用标签生成器达到类似的效果,如此处所示.当然,您可以向Servlet提供任何所需的请求参数,但要以每个新请求重新生成图表为代价.

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.

为改善用户体验,除提供以下功能外,还考虑使用 Java Web Start 部署图表.通过JSP的静态图像.这个相关的示例可能提出了基本的可能性.

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.

这篇关于如何在jsp上显示以图像形式呈现的jfreecharts的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆