Line | |
---|
1 | function Graph()
|
---|
2 | {
|
---|
3 | var options = {
|
---|
4 | chart: {
|
---|
5 | renderTo: 'container' /* display to div Graph*/
|
---|
6 |
|
---|
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);
|
---|
41 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.