- Timestamp:
- 06/03/13 16:33:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16627 r16628 101 101 rows=line[row].split(','); 102 102 dataGraph[i].push(parseFloat(rows[4])||parseFloat('0')); 103 Temp [row].push(rows[0]);103 Temp.push(rows[0]); 104 104 for(TempTime=0;TempTime<Temp.length;TempTime++) 105 105 { 106 106 rowTime=Temp[TempTime].split(':'); 107 colonTime [TempTime].push(rowTime[0]); // Contains the data of Time108 colonMin [TempTime].push(parseInt(rowTime[1]/60*100)||parseFloat('0')); // Contains the data of minutes107 colonTime.push(rowTime[0]); // Contains the data of Time 108 colonMin.push(parseInt(rowTime[1]/60*100)||parseFloat('0')); // Contains the data of minutes 109 109 for(TempHour=0;TempHour<colonTime.length;TempHour++) 110 110 { 111 111 rowHour=colonTime[TempHour].split('T'); 112 Hour [TempHour].push(parseFloat(rowHour[1])||parseFloat('0'));112 Hour.push(parseFloat(rowHour[1])||parseFloat('0')); 113 113 Time[i].push(Hour[TempHour]+'.'+colonMin[TempTime]); 114 114 }
Note:
See TracChangeset
for help on using the changeset viewer.