利用JFreeChart在JSP中制作图表
饼形为正圆plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0}={2}",NumberFormat.getNumberInstance(), NumberFormat.getPercentInstance()));//设置分类标签格式为类别名称及其所占百分比return chart; } }⑵ 在JSP中获取生成的图片。在OAJSP1工程Webroot目录中新建一JSP文件(设文件名为pie.jsp),其代码如下:="GB231
<<上一页 下一页>>
广州市越秀区图书馆版权所有。
联系电话:020-87673002
本站访问人数: