Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16273)
+++ schedule/Module/calendar.php	(revision 16274)
@@ -164,4 +164,5 @@
 								};
 
+
 							
 								for(var i=0; i<source.length;i++)
@@ -179,7 +180,5 @@
 										if(xml.readyState==4 && xml.status ==200)
 									{
-									
-								var chart=new Highcharts.Chart(options);
-									document.getElementById('data').innerHTML=DataValue;
+												document.getElementById('data').innerHTML=DataValue;
 											
 												lines[i]=xml.responseText.split("\n");
@@ -294,12 +293,6 @@
 													
 												}
-																							
-										}
-									}
-									xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true);
-									xml.send();
-								}
-								
-												for(var src=0;src<source.length;src++)
+												var chart=new Highcharts.Chart(options);
+												for(var src=0;src<i;src++)
 												{
 													chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source
@@ -316,5 +309,10 @@
 													
 												}	
-
+											
+										}
+									}
+									xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true);
+									xml.send();
+								}
 								//Charts(DataValue[[i]],Time);
 								$('#Graph').fadeOut();
