示例#1
0
 public void createChartModelByPlace() {
   chartModelByPlace = new PieChartModel();
   for (Report rp : repByPlaceList) {
     System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n\n" + rp);
     chartModelByPlace.set(rp.getOrigin() + "-" + rp.getDestination(), rp.getTotal());
   }
 }
示例#2
0
 public void createChartModelByDate() {
   chartModelByDate = new CartesianChartModel();
   LineChartSeries sum = new LineChartSeries();
   sum.setLabel("Sum");
   for (Report rp : repByDateList) {
     System.out.println(
         "____________________________________________________________________\n\n\n" + rp);
     sum.set(rp.getDate(), rp.getTotal());
   }
   chartModelByDate.addSeries(sum);
 }