corrade-nucleus-nucleons – Diff between revs 1 and 11
?pathlinks?
Rev 1 | Rev 11 | |||
---|---|---|---|---|
1 | /** |
1 | /** |
|
2 | * @license Highcharts JS v5.0.10 (2017-03-31) |
2 | * @license Highcharts JS v5.0.12 (2017-05-24) |
|
3 | * |
3 | * |
|
4 | * (c) 2009-2017 Torstein Honsi |
4 | * (c) 2009-2017 Torstein Honsi |
|
5 | * |
5 | * |
|
6 | * License: www.highcharts.com/license |
6 | * License: www.highcharts.com/license |
|
7 | */ |
7 | */ |
|
8 | 'use strict'; |
8 | 'use strict'; |
|
9 | (function(factory) { |
9 | (function(factory) { |
|
10 | if (typeof module === 'object' && module.exports) { |
10 | if (typeof module === 'object' && module.exports) { |
|
11 | module.exports = factory; |
11 | module.exports = factory; |
|
12 | } else { |
12 | } else { |
|
13 | factory(Highcharts); |
13 | factory(Highcharts); |
|
14 | } |
14 | } |
|
15 | }(function(Highcharts) { |
15 | }(function(Highcharts) { |
|
16 | (function(Highcharts) { |
16 | (function(Highcharts) { |
|
17 | /** |
17 | /** |
|
18 | * (c) 2010-2017 Torstein Honsi |
18 | * (c) 2010-2017 Torstein Honsi |
|
19 | * |
19 | * |
|
20 | * License: www.highcharts.com/license |
20 | * License: www.highcharts.com/license |
|
21 | * |
21 | * |
|
22 | * Sand-Signika theme for Highcharts JS |
22 | * Sand-Signika theme for Highcharts JS |
|
23 | * @author Torstein Honsi |
23 | * @author Torstein Honsi |
|
24 | */ |
24 | */ |
|
25 | |
25 | |
|
26 | /* global document */ |
26 | /* global document */ |
|
27 | // Load the fonts |
27 | // Load the fonts |
|
28 | Highcharts.createElement('link', { |
28 | Highcharts.createElement('link', { |
|
29 | href: 'https://fonts.googleapis.com/css?family=Signika:400,700', |
29 | href: 'https://fonts.googleapis.com/css?family=Signika:400,700', |
|
30 | rel: 'stylesheet', |
30 | rel: 'stylesheet', |
|
31 | type: 'text/css' |
31 | type: 'text/css' |
|
32 | }, null, document.getElementsByTagName('head')[0]); |
32 | }, null, document.getElementsByTagName('head')[0]); |
|
33 | |
33 | |
|
34 | // Add the background image to the container |
34 | // Add the background image to the container |
|
35 | Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function(proceed) { |
35 | Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function(proceed) { |
|
36 | proceed.call(this); |
36 | proceed.call(this); |
|
37 | this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)'; |
37 | this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)'; |
|
38 | }); |
38 | }); |
|
39 | |
39 | |
|
40 | |
40 | |
|
41 | Highcharts.theme = { |
41 | Highcharts.theme = { |
|
42 | colors: ['#f45b5b', '#8085e9', '#8d4654', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', |
42 | colors: ['#f45b5b', '#8085e9', '#8d4654', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', |
|
43 | '#55BF3B', '#DF5353', '#7798BF', '#aaeeee' |
43 | '#55BF3B', '#DF5353', '#7798BF', '#aaeeee' |
|
44 | ], |
44 | ], |
|
45 | chart: { |
45 | chart: { |
|
46 | backgroundColor: null, |
46 | backgroundColor: null, |
|
47 | style: { |
47 | style: { |
|
48 | fontFamily: 'Signika, serif' |
48 | fontFamily: 'Signika, serif' |
|
49 | } |
49 | } |
|
50 | }, |
50 | }, |
|
51 | title: { |
51 | title: { |
|
52 | style: { |
52 | style: { |
|
53 | color: 'black', |
53 | color: 'black', |
|
54 | fontSize: '16px', |
54 | fontSize: '16px', |
|
55 | fontWeight: 'bold' |
55 | fontWeight: 'bold' |
|
56 | } |
56 | } |
|
57 | }, |
57 | }, |
|
58 | subtitle: { |
58 | subtitle: { |
|
59 | style: { |
59 | style: { |
|
60 | color: 'black' |
60 | color: 'black' |
|
61 | } |
61 | } |
|
62 | }, |
62 | }, |
|
63 | tooltip: { |
63 | tooltip: { |
|
64 | borderWidth: 0 |
64 | borderWidth: 0 |
|
65 | }, |
65 | }, |
|
66 | legend: { |
66 | legend: { |
|
67 | itemStyle: { |
67 | itemStyle: { |
|
68 | fontWeight: 'bold', |
68 | fontWeight: 'bold', |
|
69 | fontSize: '13px' |
69 | fontSize: '13px' |
|
70 | } |
70 | } |
|
71 | }, |
71 | }, |
|
72 | xAxis: { |
72 | xAxis: { |
|
73 | labels: { |
73 | labels: { |
|
74 | style: { |
74 | style: { |
|
75 | color: '#6e6e70' |
75 | color: '#6e6e70' |
|
76 | } |
76 | } |
|
77 | } |
77 | } |
|
78 | }, |
78 | }, |
|
79 | yAxis: { |
79 | yAxis: { |
|
80 | labels: { |
80 | labels: { |
|
81 | style: { |
81 | style: { |
|
82 | color: '#6e6e70' |
82 | color: '#6e6e70' |
|
83 | } |
83 | } |
|
84 | } |
84 | } |
|
85 | }, |
85 | }, |
|
86 | plotOptions: { |
86 | plotOptions: { |
|
87 | series: { |
87 | series: { |
|
88 | shadow: true |
88 | shadow: true |
|
89 | }, |
89 | }, |
|
90 | candlestick: { |
90 | candlestick: { |
|
91 | lineColor: '#404048' |
91 | lineColor: '#404048' |
|
92 | }, |
92 | }, |
|
93 | map: { |
93 | map: { |
|
94 | shadow: false |
94 | shadow: false |
|
95 | } |
95 | } |
|
96 | }, |
96 | }, |
|
97 | |
97 | |
|
98 | // Highstock specific |
98 | // Highstock specific |
|
99 | navigator: { |
99 | navigator: { |
|
100 | xAxis: { |
100 | xAxis: { |
|
101 | gridLineColor: '#D0D0D8' |
101 | gridLineColor: '#D0D0D8' |
|
102 | } |
102 | } |
|
103 | }, |
103 | }, |
|
104 | rangeSelector: { |
104 | rangeSelector: { |
|
105 | buttonTheme: { |
105 | buttonTheme: { |
|
106 | fill: 'white', |
106 | fill: 'white', |
|
107 | stroke: '#C0C0C8', |
107 | stroke: '#C0C0C8', |
|
108 | 'stroke-width': 1, |
108 | 'stroke-width': 1, |
|
109 | states: { |
109 | states: { |
|
110 | select: { |
110 | select: { |
|
111 | fill: '#D0D0D8' |
111 | fill: '#D0D0D8' |
|
112 | } |
112 | } |
|
113 | } |
113 | } |
|
114 | } |
114 | } |
|
115 | }, |
115 | }, |
|
116 | scrollbar: { |
116 | scrollbar: { |
|
117 | trackBorderColor: '#C0C0C8' |
117 | trackBorderColor: '#C0C0C8' |
|
118 | }, |
118 | }, |
|
119 | |
119 | |
|
120 | // General |
120 | // General |
|
121 | background2: '#E0E0E8' |
121 | background2: '#E0E0E8' |
|
122 | |
122 | |
|
123 | }; |
123 | }; |
|
124 | |
124 | |
|
125 | // Apply the theme |
125 | // Apply the theme |
|
126 | Highcharts.setOptions(Highcharts.theme); |
126 | Highcharts.setOptions(Highcharts.theme); |
|
127 | |
127 | |
|
128 | }(Highcharts)); |
128 | }(Highcharts)); |
|
129 | })); |
129 | })); |
|
130 | |
130 | |