Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16189)
+++ schedule/Module/calendar.php	(revision 16190)
@@ -213,5 +213,5 @@
 									xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true);
 									xml.send();
-									$('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year);
+								
 								
 									
@@ -219,10 +219,5 @@
 								loadGraph(DataValue,Time);
 							}
-							
-								
-								
-							$(function loadGraph(y,x)
-							{
-								var options = {
+							var options = {
 											chart: {
 												renderTo: 'container'
@@ -262,4 +257,9 @@
 										}				
 									};
+								
+								
+							$(function loadGraph(y,x)
+							{
+								
 								var chart = new Highcharts.Chart(options);
 								for(var src=0;src<i;src++)
@@ -278,4 +278,5 @@
 									
 								}
+								$('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year);
 								document.getElementById('data').innerHTML=x;
 							});
