@Test
	public void CreateLine() throws IOException{
		TimeSeries  timeSeries  = new TimeSeries("ǰ");
		for(int j=0;j<24;j++){
			//ÿСʱһ
			timeSeries.add(new Hour(j,02,03,2013), (int)(Math.random()* 8000 + 6000) );
			//û30һ
//			for(int i=0;i<2;i++){
//				timeSeries.add(new Minute(i*30,new Hour(j,02,03,2013)), (int)(Math.random()* 8000 + 6000) );
//			}
		}

		TimeSeries  timeSeries1  = new TimeSeries("");
		for(int j=0;j<24;j++){
			//ÿСʱһ
			timeSeries1.add(new Hour(j,02,03,2013), (int)(Math.random()* 8000 + 6000) );
			//û30һ
//			for(int i=0;i<2;i++){
//				timeSeries1.add(new Minute(i*30,new Hour(j,02,03,2013)), (int)(Math.random()* 8000 + 6000) );
//			}
		}

		//ʱݼ
		TimeSeriesCollection  lineDataset  = new TimeSeriesCollection();
		
		
		lineDataset.addSeries(timeSeries);
		lineDataset.addSeries(timeSeries1);
		
		JFreeChart  chart  = ChartFactory.createTimeSeriesChart(" ͳʱ",  "ʱ", "", lineDataset,  true,  true,  true);
		//
		chart.getTitle().setFont(new Font("", Font.BOLD, 25));
		//ʾ
		chart.getLegend().setItemFont(new Font("", Font.PLAIN, 15));
		//õͼ
		XYPlot plot = (XYPlot) chart.getPlot();
		//ñɫ
		plot.setBackgroundPaint(ChartColor.WHITE);
		
		//ɫ
		plot.setDomainGridlinePaint(ChartColor.BLACK);
		
		//ɫ
		plot.setRangeGridlinePaint(ChartColor.BLACK);
		

		
		//domainǩ
		plot.getDomainAxis().setLabelFont(new Font("", Font.PLAIN, 15));
		//domainСǩ
		plot.getDomainAxis().setTickLabelFont(new Font("", Font.PLAIN, 15));
		
		//rangeǩ
		plot.getRangeAxis().setLabelFont(new Font("", Font.PLAIN, 15));
		
		//ʾ
		XYItemRenderer  xyitem  = plot.getRenderer();     
		xyitem.setBaseItemLabelsVisible(true);  
		xyitem.setBasePositiveItemLabelPosition( new  ItemLabelPosition
				(ItemLabelAnchor.OUTSIDE12,   TextAnchor.BASELINE_LEFT));
				xyitem.setBaseItemLabelGenerator( new  StandardXYItemLabelGenerator());
				xyitem.setBaseItemLabelFont(new  Font("Dialog",  1, 14));
		plot.setRenderer(xyitem);
		
		String file_name = Constant.path +"/JFreeChar/pie/TimeSeriesTest_03.jpg";
		
		ChartUtilities.saveChartAsJPEG(new File(file_name), chart, 1300, 800);
	}