使用JFreeChart制作图形报表[7]

[入库:2005年8月19日] [更新:2007年3月25日]

本文简介:选择自 bromon 的 blog

list dataofbromon=new arraylist();

 

//构造要返回的对象

timeseriescollection result=new timeseriescollection();

 

//这两个对象,分别对应一条曲线,构造函数的参数,将显示在图片的下方

timeseries fiona=new timeseries("fiona");

timeseries bromon=new timeseries("bromon");

 

curvevo cv=null;

 

//遍历fiona的数据集,填充fiona对象

for(int i=0;i<dataoffiona.size();i++)

{

cv=(curvevo)dataoffiona.get(i);

fiona.add(new timeseriesdataitem(new day(cv.getday(),cv.getmonth(),cv.getyear()), new double(cv.getcent())));

}

result.addseries(fiona);

 

for(int i=0;i<dataofbromon.size();i++)

{

cv=(curvevo)dataofbromon.get(i);

bromon.add(new timeseriesdataitem(new day(cv.getday(),cv.getmonth(),cv.getyear()),new double(cv.getcent())));

本文关键:使用JFreeChart制作图形报表
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top