- Timestamp:
- 05/25/13 04:47:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16242 r16243 127 127 { 128 128 129 function LoadData() 130 { 129 131 130 for(var i=0; i<source.length;i++) 132 131 { … … 143 142 if(xml.readyState==4 && xml.status ==200) 144 143 { 144 document.getElementById('data').innerHTML=DataValue; 145 145 146 146 lines[i]=xml.responseText.split("\n"); … … 247 247 248 248 }; 249 249 var chart=new Highcharts.Chart(options); 250 for(var src=0;src<i;src++) 251 { 252 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 253 for(var DataCnt=0;DataCnt<Time.length;DataCnt++) 254 { 255 256 chart.series[src].addPoint({ // series[0] means index of zero in data; 257 x:Time[src][DataCnt], // Time 258 y:DataValue[src][DataCnt] // Value 259 }) 260 //document.getElementById('data').innerHTML=Time[src][DataCnt]; 261 262 } 263 264 } 250 265 251 266 } … … 254 269 xml.send(); 255 270 } 256 Charts(DataValue[[i]],Time); 257 } 258 LoadData(); 259 function Charts(y,x) 260 { 271 //Charts(DataValue[[i]],Time); 272 273 274 261 275 262 276 var options = { … … 297 311 } 298 312 }; 299 var chart=new Highcharts.Chart(options); 300 for(var src=0;src<source.length;src++) 301 { 302 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 303 for(var DataCnt=0;DataCnt<Time.length;DataCnt++) 304 { 305 306 chart.series[src].addPoint({ // series[0] means index of zero in data; 307 x:Time[src][DataCnt], // Time 308 y:DataValue[src][DataCnt] // Value 309 }) 310 //document.getElementById('data').innerHTML=Time[src][DataCnt]; 311 312 } 313 314 } 313 315 314 document.getElementById('data').innerHTML=y; 316 315 //$('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year); 317 return Charts; 318 } 319 Charts(); 320 } 316 317 321 318 //Charts(); 322 319
Note:
See TracChangeset
for help on using the changeset viewer.