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()); } }
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); }