Changeset 16710
- Timestamp:
- 06/04/13 22:19:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16709 r16710 94 94 var Hour = new Array(); 95 95 var Min = new Array(); 96 var HourMin=new Array(); 96 var HourMin = new Array(); 97 var TempHour = new Array(); 97 98 var chart = new Highcharts.Chart(options); 98 99 for (i=0; i<source.length; i++) … … 115 116 { 116 117 rowHour = Temp[T1].split('T'); 117 Hour.push(parseFloat(rowHour[1])||parseFloat('0'));118 } 119 for( merge=1;merge<Temp.length-1;merge++)120 { 121 if( Hour[merge] ==0)118 TempHour.push(parseFloat(rowHour[1])||parseFloat('0')); 119 } 120 for(T2=0;T2<TempHour.length;T2++) 121 { 122 if(TempHour[T2]==0) 122 123 { 123 124 124 125 } 125 126 else 126 { 127 if(Hour[merge]==0) 128 { 129 if(Min[merge]==8) 130 { 131 HourMin.push(Hour[merge]+24+'.08'); 132 } 133 else 134 HourMin.push(Hour[merge]+24+Min[merge]); 135 } 136 else if(Hour[merge]==1) 137 { 138 if(Min[merge]==8) 139 { 140 HourMin.push(Hour[merge]+24+'.08'); 141 } 142 else 143 HourMin.push(Hour[merge]+24+Min[merge]); 144 } 145 else if(Hour[merge]==2) 146 { 147 if(Min[merge]==8) 148 { 149 HourMin.push(Hour[merge]+24+'.08'); 150 } 151 else 152 HourMin.push(Hour[merge]+24+Min[merge]); 153 } 154 else if(Hour[merge]==3) 155 { 156 if(Min[merge]==8) 157 { 158 HourMin.push(Hour[merge]+24+'.08'); 159 } 160 else 161 HourMin.push(Hour[merge]+24+Min[merge]); 162 } 163 else if(Hour[merge]==4) 164 { 165 if(Min[merge]==8) 166 { 167 HourMin.push(Hour[merge]+24+'.08'); 168 } 169 else 170 HourMin.push(Hour[merge]+24+Min[merge]); 171 } 172 else if(Hour[merge]==5) 173 { 174 if(Min[merge]==8) 175 { 176 HourMin.push(Hour[merge]+24+'.08'); 177 } 178 else 179 HourMin.push(Hour[merge]+24+Min[merge]); 180 } 181 else if(Hour[merge]==6) 182 { 183 if(Min[merge]==8) 184 { 185 HourMin.push(Hour[merge]+24+'.08'); 186 } 187 else 188 HourMin.push(Hour[merge]+24+Min[merge]); 189 } 190 else if(Hour[merge]==7) 191 { 192 if(Min[merge]==8) 193 { 194 HourMin.push(Hour[merge]+24+'.08'); 195 } 196 else 197 HourMin.push(Hour[merge]+24+Min[merge]); 198 } 199 else if(Hour[merge]==8) 200 { 201 if(Min[merge]==8) 202 { 203 HourMin.push(Hour[merge]+24+'.08'); 204 } 205 else 206 HourMin.push(Hour[merge]+24+Min[merge]); 207 } 208 else if(Min[merge]==8) 209 { 210 HourMin.push(Hour[merge]+'.08'); 211 } 212 else 213 HourMin.push(Hour[merge]+'.'+Min[merge]); 214 } 127 Hour.push(TempHour[T2]); 128 } 129 for(merge=0;merge<Hour.length;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 215 219 } 216 220 Time[i].push(HourMin[row]);
Note:
See TracChangeset
for help on using the changeset viewer.