Project

General

Profile

1
nullTheme = {
2
	chart: {
3
		backgroundColor: null,
4
		borderWidth: null,
5
		plotBackgroundColor: null,
6
		plotShadow: null,
7
		plotBorderWidth: null
8
	},
9
	xAxis: {
10
		gridLineWidth: null
11
	},
12
	yAxis: {
13
		lineWidth: null
14
	}
15
};
16

    
17
Highcharts.themes = new Array();
18
Highcharts.themes[0] = new Array();
19
Highcharts.themes[0][0] = 'simple';
20
Highcharts.themes[0][1] = new Object();
21
Highcharts.themes[1] = new Array();
22
Highcharts.themes[1][0] = 'grid';
23
Highcharts.themes[1][1] = {
24
   colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
25
   chart: {
26
      backgroundColor: {
27
         linearGradient: [0, 0, 500, 500],
28
         stops: [
29
            [0, 'rgb(255, 255, 255)'],
30
            [1, 'rgb(230, 230, 230)']
31
         ]
32
      },
33
      borderWidth: 2,
34
      plotBackgroundColor: 'rgba(255, 255, 255, .9)',
35
      plotShadow: true,
36
      plotBorderWidth: 1
37
   },
38
   title: {
39
      style: {
40
         color: '#000',
41
         font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
42
      }
43
   },
44
   subtitle: {
45
      style: {
46
         color: '#666666',
47
         font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
48
      }
49
   },
50
   xAxis: {
51
      gridLineWidth: 1,
52
      lineColor: '#000',
53
      tickColor: '#000',
54
      labels: {
55
         style: {
56
            color: '#000',
57
            font: '11px Trebuchet MS, Verdana, sans-serif'
58
         }
59
      },
60
      title: {
61
         style: {
62
            color: '#333',
63
            fontWeight: 'bold',
64
            fontSize: '12px',
65
            fontFamily: 'Trebuchet MS, Verdana, sans-serif'
66

    
67
         }
68
      }
69
   },
70
   yAxis: {
71
      minorTickInterval: 'auto',
72
      lineColor: '#000',
73
      lineWidth: 1,
74
      tickWidth: 1,
75
      tickColor: '#000',
76
      labels: {
77
         style: {
78
            color: '#000',
79
            font: '11px Trebuchet MS, Verdana, sans-serif'
80
         }
81
      },
82
      title: {
83
         style: {
84
            color: '#333',
85
            fontWeight: 'bold',
86
            fontSize: '12px',
87
            fontFamily: 'Trebuchet MS, Verdana, sans-serif'
88
         }
89
      }
90
   },
91
   legend: {
92
      itemStyle: {
93
         font: '9pt Trebuchet MS, Verdana, sans-serif',
94
         color: 'black'
95

    
96
      },
97
      itemHoverStyle: {
98
         color: '#039'
99
      },
100
      itemHiddenStyle: {
101
         color: 'gray'
102
      }
103
   },
104
   labels: {
105
      style: {
106
         color: '#99b'
107
      }
108
   }
109
};
110

    
111
Highcharts.themes[2] = new Array();
112
Highcharts.themes[2][0] = 'gray';
113
Highcharts.themes[2][1] = {
114
   colors: ["#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
115
      "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
116
   chart: {
117
      backgroundColor: {
118
         linearGradient: [0, 0, 0, 400],
119
         stops: [
120
            [0, 'rgb(96, 96, 96)'],
121
            [1, 'rgb(16, 16, 16)']
122
         ]
123
      },
124
      borderWidth: 0,
125
      borderRadius: 15,
126
      plotBackgroundColor: null,
127
      plotShadow: false,
128
      plotBorderWidth: 0
129
   },
130
   title: {
131
      style: {
132
         color: '#FFF',
133
         font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
134
      }
135
   },
136
   subtitle: {
137
      style: {
138
         color: '#DDD',
139
         font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
140
      }
141
   },
142
   xAxis: {
143
      gridLineWidth: 0,
144
      lineColor: '#999',
145
      tickColor: '#999',
146
      labels: {
147
         style: {
148
            color: '#999',
149
            fontWeight: 'bold'
150
         }
151
      },
152
      title: {
153
         style: {
154
            color: '#AAA',
155
            font: 'bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
156
         }
157
      }
158
   },
159
   yAxis: {
160
      alternateGridColor: null,
161
      minorTickInterval: null,
162
      gridLineColor: 'rgba(255, 255, 255, .1)',
163
      lineWidth: 0,
164
      tickWidth: 0,
165
      labels: {
166
         style: {
167
            color: '#999',
168
            fontWeight: 'bold'
169
         }
170
      },
171
      title: {
172
         style: {
173
            color: '#AAA',
174
            font: 'bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
175
         }
176
      }
177
   },
178
   legend: {
179
      itemStyle: {
180
         color: '#CCC'
181
      },
182
      itemHoverStyle: {
183
         color: '#FFF'
184
      },
185
      itemHiddenStyle: {
186
         color: '#333'
187
      }
188
   },
189
   labels: {
190
      style: {
191
         color: '#CCC'
192
      }
193
   },
194
   tooltip: {
195
      backgroundColor: {
196
         linearGradient: [0, 0, 0, 50],
197
         stops: [
198
            [0, 'rgba(96, 96, 96, .8)'],
199
            [1, 'rgba(16, 16, 16, .8)']
200
         ]
201
      },
202
      borderWidth: 0,
203
      style: {
204
         color: '#FFF'
205
      }
206
   },
207

    
208

    
209
   plotOptions: {
210
      line: {
211
         dataLabels: {
212
            color: '#CCC'
213
         },
214
         marker: {
215
            lineColor: '#333'
216
         }
217
      },
218
      spline: {
219
         marker: {
220
            lineColor: '#333'
221
         }
222
      },
223
      scatter: {
224
         marker: {
225
            lineColor: '#333'
226
         }
227
      },
228
      candlestick: {
229
         lineColor: 'white'
230
      }
231
   },
232

    
233
   toolbar: {
234
      itemStyle: {
235
         color: '#CCC'
236
      }
237
   },
238

    
239
   navigation: {
240
      buttonOptions: {
241
         backgroundColor: {
242
            linearGradient: [0, 0, 0, 20],
243
            stops: [
244
               [0.4, '#606060'],
245
               [0.6, '#333333']
246
            ]
247
         },
248
         borderColor: '#000000',
249
         symbolStroke: '#C0C0C0',
250
         hoverSymbolStroke: '#FFFFFF'
251
      }
252
   },
253

    
254
   exporting: {
255
      buttons: {
256
         exportButton: {
257
            symbolFill: '#55BE3B'
258
         },
259
         printButton: {
260
            symbolFill: '#7797BE'
261
         }
262
      }
263
   },
264

    
265
   // scroll charts
266
   rangeSelector: {
267
      buttonTheme: {
268
         fill: {
269
            linearGradient: [0, 0, 0, 20],
270
            stops: [
271
               [0.4, '#888'],
272
               [0.6, '#555']
273
            ]
274
         },
275
         stroke: '#000000',
276
         style: {
277
            color: '#CCC',
278
            fontWeight: 'bold'
279
         },
280
         states: {
281
            hover: {
282
               fill: {
283
                  linearGradient: [0, 0, 0, 20],
284
                  stops: [
285
                     [0.4, '#BBB'],
286
                     [0.6, '#888']
287
                  ]
288
               },
289
               stroke: '#000000',
290
               style: {
291
                  color: 'white'
292
               }
293
            },
294
            select: {
295
               fill: {
296
                  linearGradient: [0, 0, 0, 20],
297
                  stops: [
298
                     [0.1, '#000'],
299
                     [0.3, '#333']
300
                  ]
301
               },
302
               stroke: '#000000',
303
               style: {
304
                  color: 'yellow'
305
               }
306
            }
307
         }
308
      },
309
      inputStyle: {
310
         backgroundColor: '#333',
311
         color: 'silver'
312
      },
313
      labelStyle: {
314
         color: 'silver'
315
      }
316
   },
317

    
318
   navigator: {
319
      handles: {
320
         backgroundColor: '#666',
321
         borderColor: '#AAA'
322
      },
323
      outlineColor: '#CCC',
324
      maskFill: 'rgba(16, 16, 16, 0.5)',
325
      series: {
326
         color: '#7798BF',
327
         lineColor: '#A6C7ED'
328
      }
329
   },
330

    
331
   scrollbar: {
332
      barBackgroundColor: {
333
            linearGradient: [0, 0, 0, 20],
334
            stops: [
335
               [0.4, '#888'],
336
               [0.6, '#555']
337
            ]
338
         },
339
      barBorderColor: '#CCC',
340
      buttonArrowColor: '#CCC',
341
      buttonBackgroundColor: {
342
            linearGradient: [0, 0, 0, 20],
343
            stops: [
344
               [0.4, '#888'],
345
               [0.6, '#555']
346
            ]
347
         },
348
      buttonBorderColor: '#CCC',
349
      rifleColor: '#FFF',
350
      trackBackgroundColor: {
351
         linearGradient: [0, 0, 0, 10],
352
         stops: [
353
            [0, '#000'],
354
            [1, '#333']
355
         ]
356
      },
357
      trackBorderColor: '#666'
358
   },
359

    
360
   // special colors for some of the demo examples
361
   legendBackgroundColor: 'rgba(48, 48, 48, 0.8)',
362
   legendBackgroundColorSolid: 'rgb(70, 70, 70)',
363
   dataLabelsColor: '#444',
364
   textColor: '#E0E0E0',
365
   maskColor: 'rgba(255,255,255,0.3)'
366
};
367

    
368
function resetType(i){
369
	styles[i]['style']['type'] = originalTypes[i];
370
}
371

    
372
var originalTypes = new Array();
373
originalTypes[0] = 'column';
374
originalTypes[1] = 'line';
375
originalTypes[2] = 'spline';
376

    
377
var styles = new Array();
378
styles[0] = new Array();
379
styles[0]['flag'] = false;
380
styles[0]['style'] = new Object();
381
styles[0]['style']['type'] = 'column';
382
styles[0]['style']['color'] = '#4572A7';
383

    
384
styles[1] = new Array();
385
styles[1]['flag'] = false;
386
styles[1]['style'] = new Object();
387
styles[1]['style']['type'] = 'line';
388
styles[1]['style']['color'] = '#AA4643';
389

    
390
styles[2] = new Array();
391
styles[2]['flag'] = false;
392
styles[2]['style'] = new Object();
393
styles[2]['style']['type'] = 'spline';
394
styles[2]['style']['color'] = '#89A54E';
395
styles[2]['style']['marker'] = new Object();
396
styles[2]['style']['marker']['enabled'] = false;
397
styles[2]['style']['dashStyle'] = 'shortdot';
398

    
399
function merge_options(obj1,obj2){
400
    var obj3 = {};
401
    for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
402
    for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
403
    return obj3;
404
}
405

    
(14-14/16)