Changeset 16698
- Timestamp:
- 06/04/13 21:38:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16688 r16698 7 7 // alert (source[i]); 8 8 GetXMLData(i, source); 9 9 10 //$('#data').append('1st'+source); 10 11 } 12 } 13 function getDate(day){ 11 14 12 } 13 14 15 16 15 var days = day; 16 return days; 17 } 17 18 18 19 function GetXMLData(index, source) … … 37 38 displayXMLData(dataSource, source); //this will be called when the last data from the list is read 38 39 //$('#data').append('successfully load'+source +""+dataSource); 40 39 41 } 40 42 } 41 43 else 42 44 alert("status is " + XML.status); 45 }; 43 46 44 };45 47 XML.send(); 46 48 } … … 99 101 Time[i] = new Array(); // Time contains the individual time for each sources. 100 102 chart.addSeries({name:source[i], data:[]}); // created a series of data and add name of displayed source 103 101 104 for(row=0;row<dataSource[i].length;row++) 102 105 { 103 rows= line[row].split(',');106 rows=dataSource[i][row].split(','); 104 107 Temp[row]=rows[0]; 105 108 dataGraph[i].push(parseFloat(rows[4])||parseFloat('0')); … … 181 184 }) 182 185 } 183 //$('#data').append(i + ": " + source[i] + ' GRAPH DATA ' + data Graph[i] + ' Time ' + Time[i]);186 //$('#data').append(i + ": " + source[i] + ' GRAPH DATA ' + dataSource[i] + ' Time ' + Time[i]); 184 187 } 185 188
Note:
See TracChangeset
for help on using the changeset viewer.