- Timestamp:
- 06/03/13 19:13:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16666 r16667 86 86 var Temp = new Array(); 87 87 var Hour = new Array(); 88 var Min = new Array(); 89 var HourMin=new Array(); 88 90 var chart = new Highcharts.Chart(options); 89 91 for (i=0; i<source.length; i++) … … 100 102 { 101 103 rowHour=Temp[T].split('T'); 102 Hour.push(parseFloat(rowHour[1])); 103 if(Hour[T]==0) 104 rowMin=Temp[T].split(':'); 105 //Min.push(parseInt(rowMin[1]/60*100)||parseFloat('0')); 106 //Hour.push(parseFloat(rowHour[1])); 107 if(rowHour[1]==0) 104 108 { 105 Hour.push(parseFloat(rowHour[1]+24)); 109 if(rowMin[1]==8) 110 111 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 112 113 else 114 HourMin.push(parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100)); 106 115 } 107 else if( Hour[T]==1)116 else if(rowHour[1]==1) 108 117 { 109 Hour.push(parseFloat(rowHour[1]+24)); 118 if(rowMin[1]==8) 119 120 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 121 122 else 123 HourMin.push(parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100)); 110 124 } 111 else if( Hour[T]==2)125 else if(rowHour[1]==2) 112 126 { 113 Hour.push(parseFloat(rowHour[1]+24)); 127 if(rowMin[1]==8) 128 129 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 130 131 else 132 HourMin.push(parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100)); 114 133 } 115 else if( Hour[T]==3)134 else if(rowHour[1]==3) 116 135 { 117 Hour.push(parseFloat(rowHour[1]+24)); 136 if(rowMin[1]==8) 137 138 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 139 140 else 141 HourMin.push(parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100)); 118 142 } 119 else if( Hour[T]==4)143 else if(rowHour[1]==4) 120 144 { 121 Hour.push(parseFloat(rowHour[1]+24)); 145 if(rowMin[1]==8) 146 147 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 148 149 else 150 HourMin.push(parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100)); 122 151 } 123 else if( Hour[T]==5)152 else if(rowHour[1]==5) 124 153 { 125 Hour.push(parseFloat(rowHour[1]+24)); 154 if(rowMin[1]==8) 155 156 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 157 158 else 159 HourMin.push(parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100)); 126 160 } 161 else if(rowMin[1]==8) 162 { 163 HourMin.push(parseFloat(rowHour[1]+'.08')) 164 } 165 else 166 HourMin.push(parseFloat(rowHour[1]+'.'+rowMin[1])) 167 168 127 169 } 128 Time[i].push(Hour [row]);170 Time[i].push(HourMin[row]); 129 171 130 172 }
Note:
See TracChangeset
for help on using the changeset viewer.