楼主,看看下面这些文章,是否对你有帮助?
http://www.csdn.net/develop/article/23/23291.shtm
http://tech.ccidnet.com/pub/article/c1077_a71701_p1.html
http://www-900.ibm.com/developerWorks/cn/java/l-jfreechart/
http://www.csdn.net/develop/article/23/23291.shtm
http://tech.ccidnet.com/pub/article/c1077_a71701_p1.html
http://www-900.ibm.com/developerWorks/cn/java/l-jfreechart/
解决方案 »
- action超链接ID获取不到值!!
- 关于iframe的问题
- 求助:聊天室在火狐里不能发送消息,在线等~~~~~~~~
- JSP实现在线听歌和音乐下载,该怎么做呢?有知道的麻烦教一下吧谢啦啊
- 网页浏览权限问题
- 如何禁止非法访问
- 如何产生一个随机整数.
- 帮忙--(1000分)--关于开发jsp即时聊天程序!
- 在线急候:Vector里取出值的计算问题!
- 我在redhat7下,安装了jdk1.2.2,tomcat,apache后运行没有报错,可就是打localhost/examples不能显示如何办?
- [求助] 一个JAVAscript脚本代码的问题
- 请问,哪儿有关于jasperreports用法的中文论坛或书、例子之类的?
类似这种,看了javadoc你就明白了。http://www-900.ibm.com/developerWorks/cn/java/l-jfreechart/文章很好// Create the chart object
CategoryAxis categoryAxis = new CategoryAxis("");
ValueAxis valueAxis = new NumberAxis("");
BarRenderer renderer = new BarRenderer();
renderer.setItemURLGenerator(new StandardCategoryURLGenerator("xy_chart.jsp","series","section"));
renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator()); Plot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, renderer);
JFreeChart chart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, plot, false);
chart.setBackgroundPaint(java.awt.Color.white); // Write the chart image to the temporary directory
ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
filename = ServletUtilities.saveChartAsPNG(chart, 500, 300, info, session); // Write the image map to the PrintWriter
ChartUtilities.writeImageMap(pw, filename, info);
pw.flush();我很穷,给点分分吧。