Line | |
---|
1 | function Graph()
|
---|
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 | },
|
---|
40 |
|
---|
41 | events: {
|
---|
42 | legendItemClick: function(event) {
|
---|
43 |
|
---|
44 |
|
---|
45 | }
|
---|
46 | }
|
---|
47 |
|
---|
48 | }
|
---|
49 | },
|
---|
50 |
|
---|
51 |
|
---|
52 |
|
---|
53 | });
|
---|
54 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.