@Test
	public void CreateLine() throws IOException{
		TimeSeries  timeSeries  = new TimeSeries("2012ͳ");
		
		//ݼ
		timeSeries.add(new  Month(1,  2013),  11200);
		timeSeries.add(new  Month(2,  2013),  9000);
		timeSeries.add(new  Month(3,  2013),  6200);
		timeSeries.add(new  Month(4,  2013),  8200);
		timeSeries.add(new  Month(5,  2013),  8200);
		timeSeries.add(new  Month(6,  2013),  12200);
		timeSeries.add(new  Month(7,  2013),  13200);
		timeSeries.add(new  Month(8,  2013),  8300);
		timeSeries.add(new  Month(9,  2013),  12400);
		timeSeries.add(new  Month(10,  2013),  12500);
		timeSeries.add(new  Month(11,  2013),  13600);
		timeSeries.add(new  Month(12,  2013),  12500);
		
		TimeSeries  timeSeries1  = new TimeSeries("2013ͳ");
		
		//ݼ
		timeSeries1.add(new  Month(1,  2013),  11800);
		timeSeries1.add(new  Month(2,  2013),  8000);
		timeSeries1.add(new  Month(3,  2013),  9200);
		timeSeries1.add(new  Month(4,  2013),  9200);
		timeSeries1.add(new  Month(5,  2013),  10200);
		timeSeries1.add(new  Month(6,  2013),  12200);
		timeSeries1.add(new  Month(7,  2013),  9900);
		timeSeries1.add(new  Month(8,  2013),  11300);
		timeSeries1.add(new  Month(9,  2013),  10400);
		timeSeries1.add(new  Month(10,  2013),  8800);
		timeSeries1.add(new  Month(11,  2013),  10200);
		timeSeries1.add(new  Month(12,  2013),  14500);
		
		//ʱݼ
		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/LineTest_02.jpg";
		
		ChartUtilities.saveChartAsJPEG(new File(file_name), chart, 800, 500);
	}