- Timestamp:
- 06/03/13 17:23:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16640 r16641 89 89 var Hour = new Array(); 90 90 var newData= new Array(); 91 var HourMin= new Array(); 91 92 for (i=0; i<source.length; i++) 92 93 { … … 114 115 } 115 116 for(TH=0;TH<colonTime.length;TH++) 116 { 117 { 117 118 rowsHour=colonTime[TH].split('T'); 118 119 Hour.push(parseInt(rowsHour[1])||parseFloat('0')); 119 120 } 120 /*for(TempTime=0;TempTime<Temp.length;TempTime++)121 for(vTime=0;vTime<Hour.length;vTime++) 121 122 { 122 rowTime=Temp[TempTime].split(':'); 123 colonTime[TempTime]=rowTime[0]; // Contains the data of Time 124 colonMin.push(parseInt(rowTime[1]/60*100)||parseFloat('0')); // Contains the data of minutes 125 /*for(TempHour=0;TempHour<colonTime.length;TempHour++) 123 if(Hour[vTime]==0) 126 124 { 127 rowHour=colonTime[TempHour].split('T'); 128 Hour.push(parseFloat(rowHour[1])||parseFloat('0')); 129 Time[i].push(Hour[TempHour]+'.'+colonMin[TempTime]); 130 }*/ 131 /*Time[i].push(colonTime[TempTime]); 125 if(Hour[vTime]==8) 126 HourMin.push(Hour[vTime]+24+ '.08'); 127 else 128 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 129 } 130 else if(Hour[vTime]==1) 131 { 132 if(Hour[vTime]==8) 133 HourMin.push(Hour[vTime]+24+ '.08'); 134 else 135 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 136 } 137 else if(Hour[vTime]==2) 138 { 139 if(Hour[vTime]==8) 140 HourMin.push(Hour[vTime]+24+ '.08'); 141 else 142 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 143 } 144 else if(Hour[vTime]==3) 145 { 146 if(Hour[vTime]==8) 147 HourMin.push(Hour[vTime]+24+ '.08'); 148 else 149 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 150 } 151 else if(Hour[vTime]==4) 152 { 153 if(Hour[vTime]==8) 154 HourMin.push(Hour[vTime]+24+ '.08'); 155 else 156 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 157 } 158 else if(Hour[vTime]==5) 159 { 160 if(Hour[vTime]==8) 161 HourMin.push(Hour[vTime]+24+ '.08'); 162 else 163 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 164 } 165 else if(Hour[vTime]==6) 166 { 167 if(Hour[vTime]==8) 168 HourMin.push(Hour[vTime]+24+ '.08'); 169 else 170 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 171 } 172 else if(Hour[vTime]==7) 173 { 174 if(Hour[vTime]==8) 175 HourMin.push(Hour[vTime]+24+ '.08'); 176 else 177 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 178 } 179 else if(Hour[vTime]==8) 180 { 181 if(Hour[vTime]==8) 182 HourMin.push(Hour[vTime]+24+ '.08'); 183 else 184 HourMin.push(Hour[vTime]+24+colonMin[vTime]); 185 } 186 else if(colonMin[vTime]==8) 187 HourMin.push(Hour[vTime] + '.08'); 188 else 189 HourMin.push(Hour[vTime]+'.'+colonMin[vTime]); 132 190 133 } */134 Time[i].push(Hour [row]+'.'+colonMin[row]);191 } 192 Time[i].push(HourMin[row]); 135 193 } 136 194 $('#data').append(i + ": " + source[i] + ' GRAPH DATA ' + dataGraph[i] + ' Time '+ Time[i]);
Note:
See TracChangeset
for help on using the changeset viewer.