- Timestamp:
- 06/03/13 16:31:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16626 r16627 93 93 dataGraph[i] = new Array(); //dataGraph contains the individual points for each source i 94 94 Time[i] = new Array(); // Time contains the individual time for each sources. 95 Temp[i] = new Array();96 colonTime[i] = new Array();97 colonMin[i] = new Array();98 Hour[i] = new Array();95 //Temp[i] = new Array(); 96 //colonTime[i] = new Array(); 97 //colonMin[i] = new Array(); 98 //Hour[i] = new Array(); 99 99 for(row=0;row<dataSource[i].length;row++) 100 100 { 101 101 rows=line[row].split(','); 102 102 dataGraph[i].push(parseFloat(rows[4])||parseFloat('0')); 103 Temp[ i].push(rows[0]);103 Temp[row].push(rows[0]); 104 104 for(TempTime=0;TempTime<Temp.length;TempTime++) 105 105 { 106 106 rowTime=Temp[TempTime].split(':'); 107 colonTime[ i].push(rowTime[0]); // Contains the data of Time108 colonMin[ i].push(parseInt(rowTime[1]/60*100)||parseFloat('0')); // Contains the data of minutes107 colonTime[TempTime].push(rowTime[0]); // Contains the data of Time 108 colonMin[TempTime].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[ i].push(parseFloat(rowHour[1])||parseFloat('0'));113 Time[i].push(Hour[ i]+'.'+colonMin[i]);112 Hour[TempHour].push(parseFloat(rowHour[1])||parseFloat('0')); 113 Time[i].push(Hour[TempHour]+'.'+colonMin[TempTime]); 114 114 } 115 115
Note:
See TracChangeset
for help on using the changeset viewer.