Changeset 16712
- Timestamp:
- 06/04/13 22:28:45 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16711 r16712 108 108 Temp[row]=rows[0]; 109 109 dataGraph[i].push(parseFloat(rows[4])||parseFloat('0')); 110 for( T=0;T<Temp.length;T++)110 for(getTime=0;getTime<Temp.length;getTime++) 111 111 { 112 rowMin=Temp[T].split(':'); 113 Min.push(parseInt(rowMin[1]/60*100)||parseFloat('0')); 114 } 115 for(T1=0;T1<Temp.length;T1++) 116 { 117 rowHour = Temp[T1].split('T'); 118 TempHour.push(parseFloat(rowHour[1])||parseFloat('0')); 119 } 120 for(T2=0;T2<TempHour.length;T2++) 121 { 122 if(TempHour[T2]==0) 123 { 124 125 } 126 else 127 Hour.push(TempHour[T2]); 128 } 129 for(merge=1;merge<Temp.length-1;merge++) 130 { 131 if(Hour[merge]==0) 132 { 133 if(Min[merge]==8) 134 { 135 HourMin.push(Hour[merge]+24+'.08'); 136 } 137 else 138 HourMin.push(Hour[merge]+24+Min[merge]); 139 } 140 else if(Hour[merge]==1) 141 { 142 if(Min[merge]==8) 143 { 144 HourMin.push(Hour[merge]+24+'.08'); 145 } 146 else 147 HourMin.push(Hour[merge]+24+Min[merge]); 148 } 149 else if(Hour[merge]==2) 150 { 151 if(Min[merge]==8) 152 { 153 HourMin.push(Hour[merge]+24+'.08'); 154 } 155 else 156 HourMin.push(Hour[merge]+24+Min[merge]); 157 } 158 else if(Hour[merge]==3) 159 { 160 if(Min[merge]==8) 161 { 162 HourMin.push(Hour[merge]+24+'.08'); 163 } 164 else 165 HourMin.push(Hour[merge]+24+Min[merge]); 166 } 167 else if(Hour[merge]==4) 168 { 169 if(Min[merge]==8) 170 { 171 HourMin.push(Hour[merge]+24+'.08'); 172 } 173 else 174 HourMin.push(Hour[merge]+24+Min[merge]); 175 } 176 else if(Hour[merge]==5) 177 { 178 if(Min[merge]==8) 179 { 180 HourMin.push(Hour[merge]+24+'.08'); 181 } 182 else 183 HourMin.push(Hour[merge]+24+Min[merge]); 184 } 185 else if(Hour[merge]==6) 186 { 187 if(Min[merge]==8) 188 { 189 HourMin.push(Hour[merge]+24+'.08'); 190 } 191 else 192 HourMin.push(Hour[merge]+24+Min[merge]); 193 } 194 else if(Hour[merge]==7) 195 { 196 if(Min[merge]==8) 197 { 198 HourMin.push(Hour[merge]+24+'.08'); 199 } 200 else 201 HourMin.push(Hour[merge]+24+Min[merge]); 202 } 203 else if(Hour[merge]==8) 204 { 205 if(Min[merge]==8) 206 { 207 HourMin.push(Hour[merge]+24+'.08'); 208 } 209 else 210 HourMin.push(Hour[merge]+24+Min[merge]); 211 } 212 else if(Min[merge]==8) 213 { 214 HourMin.push(Hour[merge]+'.08'); 215 } 216 else 217 HourMin.push(Hour[merge]+'.'+Min[merge]); 218 112 date = new Date(Temp[getTime]); 113 HourMin.push(parseFloat(date.getHour())+'.'+parseInt(date.getMinutes()/60*100)); 219 114 } 220 115 Time[i].push(HourMin[row]);
Note:
See TracChangeset
for help on using the changeset viewer.