public void createChart()
	{
		pieChartModel=new PieChartModel();
		
		setPriority("emerg");
		Long emerg= getFacilityCount();
		if(emerg!=0)
		pieChartModel.set("Emergency", emerg);
		
		
		setPriority("Alert");
		Long alert= getFacilityCount();
		if(alert!=0)
		pieChartModel.set("Alert",alert);

		setPriority("crit");
		Long crit= getFacilityCount();
		if(crit!=0)
		pieChartModel.set("Critical", crit);
		
		setPriority("err");
		Long err= getFacilityCount();
		if(err!=0)
		pieChartModel.set("error",err);
		
		setPriority("warning");
		Long warning= getFacilityCount();
		if(warning!=0)
		pieChartModel.set("Warning",warning);
		
		
		setPriority("notice");
		Long notice= getFacilityCount();
		if(notice!=0)
		pieChartModel.set("Notice",notice);
		
		setPriority("info");
		Long info= getFacilityCount();
		if(info!=0)
		pieChartModel.set("Information",info);
		
		setPriority("debug");
		Long debug= getFacilityCount();
		if(debug!=0)
		pieChartModel.set("Debug",debug);
		
	}