Changeset 15928
- Timestamp:
- 05/21/13 16:44:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r15927 r15928 72 72 if (xmlhttp.readyState==4 && xmlhttp.status==200) 73 73 { 74 /*var options = { 75 chart: { 76 renderTo: 'container' 77 }, 78 xAxis: { 79 type:'datetime' 80 }, 81 series: [] 82 };*/ 74 var options = { 75 chart: { 76 renderTo: 'container' /* display to div Graph*/ 77 }, 78 79 xAxis: { 80 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"] 81 }, 82 series:[], /* array of Data */ 83 84 remove:function() 85 { 86 return false; 87 }, 88 89 exporting: { /*--------------------*/ 90 buttons: { /* */ 91 exportButton: { /* Export */ 92 menuItems: null, /* to */ 93 onclick: function() { /* PNG.file */ 94 this.exportChart(); /*--------------------*/ 95 } 96 } 97 } 98 } 99 100 101 102 }; 83 103 var lines = xmlhttp.responseText.split('\n'); 84 104 var arr; … … 144 164 document.getElementById('data').innerHTML=finaldata; 145 165 146 /*options.series.push({166 options.series.push({ 147 167 148 data:[finaldata] 149 });*/ 150 //var chart = new Highcharts.Chart(options); 151 var data1= { 152 chart: { 153 renderTo: 'container' /* display to div Graph*/ 154 }, 155 156 xAxis: { 157 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"] 158 }, 159 series:[], /* array of Data */ 160 161 remove:function() 162 { 163 return false; 164 }, 165 166 exporting: { /*--------------------*/ 167 buttons: { /* */ 168 exportButton: { /* Export */ 169 menuItems: null, /* to */ 170 onclick: function() { /* PNG.file */ 171 this.exportChart(); /*--------------------*/ 172 } 173 } 174 } 175 } 176 177 178 179 }; 180 181 // the button handler 182 newdata1=[21,4],[5,6],[7,8],[3,41]; 183 184 185 data1.series.push({ 186 data: [newdata1] 187 }); 168 data:newdata 169 }); 170 var chart = new Highcharts.Chart(options); 188 171 189 var chart = new Highcharts.Chart(data1);190 172 191 173
Note:
See TracChangeset
for help on using the changeset viewer.