- Timestamp:
- 05/24/13 15:40:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16123 r16124 83 83 var HourTime = []; 84 84 var DataVal = []; 85 var source=[ 'Crab','Mrk 501','Mrk 402'];85 var source=[Crab,Mrk 501,Mrk 402]; 86 86 for(var i = 0; i<source.length;i++) 87 87 { … … 202 202 xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true); 203 203 xml.send(); 204 $('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year); 204 205 } 205 206 var options = { … … 244 245 { 245 246 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 246 for(var i=0;i<Data[src].length;i++)247 for(var DataCnt=0;DataCnt<Data[src].length;DataCnt++) 247 248 { 248 249 249 250 chart.series[src].addPoint({ // series[0] means index of zero in data; 250 x:Time[src][ i], // Time251 y:Data[src][ i] // Value251 x:Time[src][DataCnt], // Time 252 y:Data[src][DataCnt] // Value 252 253 }) 253 254 254 255 } 255 256 } 256 $('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year);257 257 258 }); 258 259
Note:
See TracChangeset
for help on using the changeset viewer.