- Timestamp:
- 05/25/13 00:37:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16220 r16221 108 108 { 109 109 var lines=xml.responseText.split("\n"); 110 for(var row=0;row<lines.length;row++) 110 Charts(lines); 111 } 112 113 LoadData(); 114 function Charts(line) 115 { 116 for(var row=0;row<line.length;row++) 111 117 { 112 var splitted=line s[row].split(',');118 var splitted=line[row].split(','); 113 119 Time1[row]=splitted[0]; 114 120 for(var SplittedTime=0;SplittedTime<Time1.length;SplittedTime++) … … 210 216 211 217 } 212 Charts(DataValue,Time);213 }214 215 LoadData();216 function Charts(y,x)217 {218 218 var options = { 219 219 chart: { … … 257 257 { 258 258 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 259 for(var DataCnt=0;DataCnt< y[src].length;DataCnt++)259 for(var DataCnt=0;DataCnt<DataValue[src].length;DataCnt++) 260 260 { 261 261 262 262 chart.series[src].addPoint({ // series[0] means index of zero in data; 263 x: x[src][DataCnt], // Time264 y: y[src][DataCnt] // Value263 x:Time[src][DataCnt], // Time 264 y:DataValue[src][DataCnt] // Value 265 265 }) 266 266 //document.getElementById('data').innerHTML=Time[src][DataCnt];
Note:
See TracChangeset
for help on using the changeset viewer.