Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16270)
+++ schedule/Module/calendar.php	(revision 16271)
@@ -293,6 +293,12 @@
 													
 												}
-												var chart=new Highcharts.Chart(options);
-												for(var src=0;src<i;src++)
+																							
+										}
+									}
+									xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true);
+									xml.send();
+								}
+								var chart=new Highcharts.Chart(options);
+												for(var src=0;src<source.length;src++)
 												{
 													chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source
@@ -309,10 +315,5 @@
 													
 												}	
-											
-										}
-									}
-									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();
