海能图表的简单使用:例子和写的demo
mydemo目录
调用demohnsoft 可以去除水印。
//将图形装入图表容器
HnChart hnchart = new HnChart();
HttpServletRequest request = ServletActionContext.getRequest ();
String contextPath = request.getContextPath();
hnchart.chartpath = contextPath+ "/hnsoft/hnchart";//图表主文件所在路径
hnchart.addChart(chart);//将图表对象装进容器
//使用原生的writer生成html
HttpServletResponse response = ServletActionContext.getResponse();
response.getWriter().write(hnchart.BuildChartForHtml());
本文介绍如何使用海能图表库进行图表显示,并通过原生的writer生成HTML页面,同时演示了如何在图表中去除水印的方法。

被折叠的 条评论
为什么被折叠?



