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