@Test
	public void CreateBar() throws IOException{
		//״ͼҪݼ
		DefaultCategoryDataset ds = new DefaultCategoryDataset();
		ds.addValue(6000,"PHP","Windows");
		ds.addValue(5000,"JAVA","Windows");
		ds.addValue(4000,"Python","Windows");
		
		ds.addValue(5000,"PHP","Linux");
		ds.addValue(4500,"JAVA","Linux");
		ds.addValue(3200,"Python","Linux");
		
		ds.addValue(5000,"PHP","Mac");
		ds.addValue(3000,"JAVA","Mac");
		ds.addValue(3000,"Python","Mac");
		
		JFreeChart chart = ChartFactory.createBarChart(
				"ϵͳƽ̨ʹ", // ͼ
				"", // Ŀ¼ʾǩ
				"ʹ", // ֵʾǩ
				ds, // ݼ
				PlotOrientation.VERTICAL, // ͼˮƽֱ
				true, // Ƿʾͼ(ڼ򵥵״ͼfalse)
				false, // Ƿɹ
				false // ǷURL
		);
		
		//ñ壨ͨ⣩
		chart.getTitle().setFont(new Font("", Font.BOLD, 25));
		
		//ʾ
		chart.getLegend().setItemFont(new Font("", Font.PLAIN, 15));
		
		//õͼ
		CategoryPlot plot = (CategoryPlot) chart.getPlot();
		//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));
		
		
		String file_name = Constant.path +"/JFreeChar/pie/BarTest_01.jpg";
		
		//浽ͼƬ
		ChartUtilities.saveChartAsJPEG(new File(file_name), chart, 800, 500);
		
	}