JFreeChart chart1 = createChart("Chart 1 : 1 Year", dataset);
ChartPanel chartPanel1 = new ChartPanel(chart1);
panel.add(chartPanel1);
JFreeChart chart2 = createChart("Chart 2 : 6 Months", dataset);
SerialDate t = today.getSerialDate();
SerialDate t6m = SerialDate.addMonths(-6, t);
Day sixMonthsAgo = new Day(t6m);
DateAxis axis2 = (DateAxis) chart2.getXYPlot().getDomainAxis();
axis2.setRange(sixMonthsAgo.getStart(), today.getEnd());
ChartPanel chartPanel2 = new ChartPanel(chart2);
panel.add(chartPanel2);
JFreeChart chart3 = createChart("Chart 3 : 3 Months", dataset);
SerialDate t3m = SerialDate.addMonths(-3, t);
Day threeMonthsAgo = new Day(t3m);
DateAxis axis3 = (DateAxis) chart3.getXYPlot().getDomainAxis();
axis3.setRange(threeMonthsAgo.getStart(), today.getEnd());
ChartPanel chartPanel3 = new ChartPanel(chart3);
panel.add(chartPanel3);
JFreeChart chart4 = createChart("Chart 4 : 1 Month", dataset);
SerialDate t1m = SerialDate.addMonths(-1, t);
Day oneMonthsAgo = new Day(t1m);
DateAxis axis4 = (DateAxis) chart4.getXYPlot().getDomainAxis();
axis4.setRange(oneMonthsAgo.getStart(), today.getEnd());
ChartPanel chartPanel4 = new ChartPanel(chart4);
panel.add(chartPanel4);