Changeset 16203 for schedule/Module
- Timestamp:
- 05/24/13 23:48:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/Graph.js
r16201 r16203 1 1 function Graph() 2 2 { 3 var chart = new Highcharts.Chart({ 4 chart: { 5 renderTo: 'Graph' /* display to div Graph*/ 6 }, 7 8 xAxis: { 9 labels: { 10 rotation: -45, 11 align: 'right', 12 }, 13 categories:["","","","","","","","19:00","20:00","21:00","22:00","23:00","24:00","1:00","2:00","3:00","4:00","5:00","6:00","7:00"] 14 }, 15 series:[], /* array of Data */ 16 17 remove:function() 18 { 19 return false; 20 }, 21 22 exporting: { /*--------------------*/ 23 buttons: { /* */ 24 exportButton: { /* Export */ 25 menuItems: null, /* to */ 26 onclick: function() { /* PNG.file */ 27 this.exportChart(); /*--------------------*/ 28 } 29 } 30 } 31 }, 32 33 plotOptions: 34 { 35 series: { 36 marker: { 37 enabled: false, 38 39 }, 3 var options = { 4 chart: { 5 renderTo: 'container' /* display to div Graph*/ 40 6 41 events: { 42 legendItemClick: function(event) { 43 44 45 } 46 } 47 48 } 49 }, 50 51 52 53 }); 7 }, 8 9 xAxis: { 10 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"] 11 }, 12 series:[], /* array of Data */ 13 14 remove:function() 15 { 16 return false; 17 }, 18 19 exporting: { /*--------------------*/ 20 buttons: { /* */ 21 exportButton: { /* Export */ 22 menuItems: null, /* to */ 23 onclick: function() { /* PNG.file */ 24 this.exportChart(); /*--------------------*/ 25 } 26 } 27 } 28 }, 29 plotOptions : { 30 31 series : { 32 lineWidth: 3, 33 34 marker : { 35 enabled:false 36 } 37 } 38 } 39 }; 40 var chart=new Highcharts.Chart(options); 54 41 }
Note:
See TracChangeset
for help on using the changeset viewer.