Changeset 16176
- Timestamp:
- 05/24/13 18:41:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16175 r16176 73 73 <script type="text/javascript">//<![CDATA[ 74 74 CAL.addEventListener("onSelect", function(){ 75 76 75 var day =this.selection.print("%d").join("\n"); 77 76 var month =this.selection.print("%m").join("\n"); … … 84 83 var MinTime = []; 85 84 var HourTime = []; 86 $('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year);87 85 var DataVal = []; 88 86 var source=['Crab','Mrk 501','Mrk 421']; 89 var options = { 90 chart: { 91 renderTo: 'container' 92 /* display to div Graph*/ 93 94 }, 95 96 xAxis: { 97 categories:["12PM","1PM","2PM","3PM","4PM","5PM","6PM","7PM","8PM","9PM","10PM","11PM","12AM","1AM","2AM","3AM","4AM","5AM","6AM","7AM","8AM","9AM","10AM","12PM"] 98 }, 99 series:[], /* array of Data */ 100 101 remove:function() 102 { 103 return false; 104 }, 105 106 exporting: { /*--------------------*/ 107 buttons: { /* */ 108 exportButton: { /* Export */ 109 menuItems: null, /* to */ 110 onclick: function() { /* PNG.file */ 111 this.exportChart(); /*--------------------*/ 112 } 113 } 114 } 115 }, 116 plotOptions : { 117 118 series : { 119 lineWidth: 3, 120 121 marker : { 122 enabled:false 123 } 124 } 125 } 126 }; 127 128 var chart = new Highcharts.Chart(options); 87 129 88 function loaddata() 130 89 { … … 257 216 } 258 217 loadGraph(DataValue,Time); 259 } 218 }, 219 var options = { 220 chart: { 221 renderTo: 'container' 222 /* display to div Graph*/ 223 224 }, 225 226 xAxis: { 227 categories:["12PM","1PM","2PM","3PM","4PM","5PM","6PM","7PM","8PM","9PM","10PM","11PM","12AM","1AM","2AM","3AM","4AM","5AM","6AM","7AM","8AM","9AM","10AM","12PM"] 228 }, 229 series:[], /* array of Data */ 230 231 remove:function() 232 { 233 return false; 234 }, 235 236 exporting: { /*--------------------*/ 237 buttons: { /* */ 238 exportButton: { /* Export */ 239 menuItems: null, /* to */ 240 onclick: function() { /* PNG.file */ 241 this.exportChart(); /*--------------------*/ 242 } 243 } 244 } 245 }, 246 plotOptions : { 247 248 series : { 249 lineWidth: 3, 250 251 marker : { 252 enabled:false 253 } 254 } 255 } 256 }; 257 258 260 259 function loadGraph(x,y) 261 260 { 261 var chart = new Highcharts.Chart(options); 262 262 for(var src=0;src<i;src++) 263 263 { … … 270 270 y:y[src][DataCnt] // Value 271 271 }) 272 document.getElementById('data').innerHTML=x;273 272 273 274 274 } 275 275 276 276 } 277 document.getElementById('data').innerHTML=x; 277 278 } 278 279 loadGraph(); 279 280 $('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year); 280 281 281 282 });
Note:
See TracChangeset
for help on using the changeset viewer.