How to use writeChartAsPNG in JSP?

Deadly 提交于 2019-12-18 09:39:30

问题


Can anyone explain how to use writeChartAsPNG in JSP?


回答1:


please check this link out.Its good.

How to use writeChartAsPNG

They have used ChartUtilities.writeChartAsPNG() methods in the example given over there.




回答2:


<img src="/path/to/chart" /> and have this path handled by a servlet, where:

ChartUtilities.writeChartAsPng(response.getOutputStream(), ....);



回答3:


Not totally related, but you might also consider Cewolf (http://cewolf.sourceforge.net/new/), which provides a JSP tag-library on top of JFrechart, and thus liberates you from using JSP scriplets.



来源:https://stackoverflow.com/questions/5496411/how-to-use-writechartaspng-in-jsp

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