1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | (function(factory) {
|
9 | if (typeof module === 'object' && module.exports) {
|
10 | module.exports = factory;
|
11 | } else {
|
12 | factory(Highcharts);
|
13 | }
|
14 | }(function(Highcharts) {
|
15 | (function(Highcharts) {
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | 'use strict';
|
26 | Highcharts.theme = {
|
27 | colors: ['#514F78', '#42A07B', '#9B5E4A', '#72727F', '#1F949A', '#82914E', '#86777F', '#42A07B'],
|
28 | chart: {
|
29 | className: 'skies',
|
30 | borderWidth: 0,
|
31 | plotShadow: true,
|
32 | plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
|
33 | plotBackgroundColor: {
|
34 | linearGradient: [0, 0, 250, 500],
|
35 | stops: [
|
36 | [0, 'rgba(255, 255, 255, 1)'],
|
37 | [1, 'rgba(255, 255, 255, 0)']
|
38 | ]
|
39 | },
|
40 | plotBorderWidth: 1
|
41 | },
|
42 | title: {
|
43 | style: {
|
44 | color: '#3E576F',
|
45 | font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
46 | }
|
47 | },
|
48 | subtitle: {
|
49 | style: {
|
50 | color: '#6D869F',
|
51 | font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
52 | }
|
53 | },
|
54 | xAxis: {
|
55 | gridLineWidth: 0,
|
56 | lineColor: '#C0D0E0',
|
57 | tickColor: '#C0D0E0',
|
58 | labels: {
|
59 | style: {
|
60 | color: '#666',
|
61 | fontWeight: 'bold'
|
62 | }
|
63 | },
|
64 | title: {
|
65 | style: {
|
66 | color: '#666',
|
67 | font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
68 | }
|
69 | }
|
70 | },
|
71 | yAxis: {
|
72 | alternateGridColor: 'rgba(255, 255, 255, .5)',
|
73 | lineColor: '#C0D0E0',
|
74 | tickColor: '#C0D0E0',
|
75 | tickWidth: 1,
|
76 | labels: {
|
77 | style: {
|
78 | color: '#666',
|
79 | fontWeight: 'bold'
|
80 | }
|
81 | },
|
82 | title: {
|
83 | style: {
|
84 | color: '#666',
|
85 | font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
|
86 | }
|
87 | }
|
88 | },
|
89 | legend: {
|
90 | itemStyle: {
|
91 | font: '9pt Trebuchet MS, Verdana, sans-serif',
|
92 | color: '#3E576F'
|
93 | },
|
94 | itemHoverStyle: {
|
95 | color: 'black'
|
96 | },
|
97 | itemHiddenStyle: {
|
98 | color: 'silver'
|
99 | }
|
100 | },
|
101 | labels: {
|
102 | style: {
|
103 | color: '#3E576F'
|
104 | }
|
105 | }
|
106 | };
|
107 |
|
108 |
|
109 | Highcharts.setOptions(Highcharts.theme);
|
110 |
|
111 | }(Highcharts));
|
112 | }));
|