- Timestamp:
- 06/03/13 17:30:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16641 r16642 88 88 var colonMin = new Array(); 89 89 var Hour = new Array(); 90 var newData= new Array(); 91 var HourMin= new Array(); 90 var newData = new Array(); 91 var HourMin = new Array(); 92 var GraphData = new Array(); 92 93 for (i=0; i<source.length; i++) 93 94 { … … 106 107 } 107 108 else 108 dataGraph[i].push(parseFloat(newData[Data]));109 GraphData.push(parseFloat(newData[Data])); 109 110 } 110 111 for(TT=0;TT<Temp.length;TT++) … … 126 127 HourMin.push(Hour[vTime]+24+ '.08'); 127 128 else 128 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);129 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 129 130 } 130 131 else if(Hour[vTime]==1) … … 133 134 HourMin.push(Hour[vTime]+24+ '.08'); 134 135 else 135 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);136 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 136 137 } 137 138 else if(Hour[vTime]==2) … … 140 141 HourMin.push(Hour[vTime]+24+ '.08'); 141 142 else 142 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);143 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 143 144 } 144 145 else if(Hour[vTime]==3) … … 147 148 HourMin.push(Hour[vTime]+24+ '.08'); 148 149 else 149 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);150 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 150 151 } 151 152 else if(Hour[vTime]==4) … … 154 155 HourMin.push(Hour[vTime]+24+ '.08'); 155 156 else 156 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);157 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 157 158 } 158 159 else if(Hour[vTime]==5) … … 161 162 HourMin.push(Hour[vTime]+24+ '.08'); 162 163 else 163 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);164 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 164 165 } 165 166 else if(Hour[vTime]==6) … … 168 169 HourMin.push(Hour[vTime]+24+ '.08'); 169 170 else 170 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);171 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 171 172 } 172 173 else if(Hour[vTime]==7) … … 175 176 HourMin.push(Hour[vTime]+24+ '.08'); 176 177 else 177 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);178 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 178 179 } 179 180 else if(Hour[vTime]==8) … … 182 183 HourMin.push(Hour[vTime]+24+ '.08'); 183 184 else 184 HourMin.push(Hour[vTime]+24+ colonMin[vTime]);185 HourMin.push(Hour[vTime]+24+'.'+colonMin[vTime]); 185 186 } 186 187 else if(colonMin[vTime]==8) … … 191 192 } 192 193 Time[i].push(HourMin[row]); 194 dataGraph[i].push(GraphData[row]); 193 195 } 194 196 $('#data').append(i + ": " + source[i] + ' GRAPH DATA ' + dataGraph[i] + ' Time '+ Time[i]);
Note:
See TracChangeset
for help on using the changeset viewer.