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
themes = new Array();
18
themes[0] = new Array();
19
themes[0][0] = 'simple';
20
themes[0][1] = new Object();
21
themes[1] = new Array();
22
themes[1][0] = 'grid';
23
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
		 enabled: true
82
      },
83
      title: {
84
         style: {
85
            color: '#333',
86
            fontWeight: 'bold',
87
            fontSize: '12px',
88
            fontFamily: 'Trebuchet MS, Verdana, sans-serif'
89
         }
90
      }
91
   },
92
   legend: {
93
      itemStyle: {
94
         font: '9pt Trebuchet MS, Verdana, sans-serif',
95
         color: 'black'
96

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

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

    
209

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

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

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

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

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

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

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

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

    
369
themes[3] = new Array();
370
themes[3][0] = 'openaire';
371
themes[3][1] = {
372
colors: [],
373
chart: {
374
backgroundColor: {
375
linearGradient: [0, 0, 500, 500],
376
stops: [
377
[0, 'rgb(255, 255, 255)'],
378
[1, 'rgb(230, 230, 230)']
379
]
380
}
381
,
382
borderWidth: 2,
383
plotBackgroundColor: 'rgba(255, 255, 255, .9)',
384
plotShadow: true,
385
plotBorderWidth: 1
386
},
387
title: {
388
style: {
389
color: '#000',
390
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
391
}
392
},
393
subtitle: {
394
style: {
395
color: '#666666',
396
font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
397
}
398
},
399
xAxis: {
400
gridLineWidth: 1,
401
lineColor: '#000',
402
tickColor: '#000',
403
labels: {
404
style: {
405
color: '#000',
406
font: '11px Trebuchet MS, Verdana, sans-serif'
407
}
408
},
409
title: {
410
style: {
411
color: '#333',
412
fontWeight: 'bold',
413
fontSize: '12px',
414
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
415
}
416
}
417
},
418
yAxis: {
419
minorTickInterval: 'auto',
420
lineColor: '#000',
421
lineWidth: 1,
422
tickWidth: 1,
423
tickColor: '#000',
424
labels: {
425
style: {
426
color: '#000',
427
font: '11px Trebuchet MS, Verdana, sans-serif'
428
}
429
},
430
title: {
431
style: {
432
color: '#333',
433
fontWeight: 'bold',
434
fontSize: '12px',
435
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
436
}
437
}
438
},
439
legend: {
440
itemStyle: {
441
font: '9pt Trebuchet MS, Verdana, sans-serif',
442
color: 'black'
443
},
444
itemHoverStyle: {
445
color: '#039'
446
},
447
itemHiddenStyle: {
448
color: 'gray'
449
}
450
},
451
labels: {
452
style: {
453
color: '#99b'
454
}
455
}
456
}; 
457

    
458
function resetType(i){
459
	styles[i]['style']['type'] = originalTypes[i];
460
}
461

    
462
var originalTypes = new Array();
463
originalTypes[0] = 'column';
464
originalTypes[1] = 'line';
465
originalTypes[2] = 'spline';
466

    
467
var styles = new Array();
468
styles[0] = new Array();
469
styles[0]['flag'] = false;
470
styles[0]['style'] = new Object();
471
styles[0]['style']['type'] = 'column';
472
styles[0]['style']['color'] = '#4572A7';
473

    
474
styles[1] = new Array();
475
styles[1]['flag'] = false;
476
styles[1]['style'] = new Object();
477
styles[1]['style']['type'] = 'line';
478
styles[1]['style']['color'] = '#AA4643';
479

    
480
styles[2] = new Array();
481
styles[2]['flag'] = false;
482
styles[2]['style'] = new Object();
483
styles[2]['style']['type'] = 'spline';
484
styles[2]['style']['color'] = '#89A54E';
485
styles[2]['style']['marker'] = new Object();
486
styles[2]['style']['marker']['enabled'] = false;
487
styles[2]['style']['dashStyle'] = 'shortdot';
488

    
489
function merge_options(obj1,obj2){
490
    var obj3 = {};
491
    for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
492
    for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
493
    return obj3;
494
}
495

    
496
var signature = "from OpenAIRE via google charts";
497
var addDate = true;
498
var datetext = "date: ";
(15-15/16)