Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
/**
2
 * Grid-light theme for Highcharts JS
3
 * @author Torstein Honsi
4
 */
5
 
6
// Load the fonts
7
Highcharts.createElement('link', {
8
	href: '//fonts.googleapis.com/css?family=Dosis:400,600',
9
	rel: 'stylesheet',
10
	type: 'text/css'
11
}, null, document.getElementsByTagName('head')[0]);
12
 
13
Highcharts.theme = {
14
	colors: ["#7cb5ec", "#f7a35c", "#90ee7e", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
15
		"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
16
	chart: {
17
		backgroundColor: null,
18
		style: {
19
			fontFamily: "Dosis, sans-serif"
20
		}
21
	},
22
	title: {
23
		style: {
24
			fontSize: '16px',
25
			fontWeight: 'bold',
26
			textTransform: 'uppercase'
27
		}
28
	},
29
	tooltip: {
30
		borderWidth: 0,
31
		backgroundColor: 'rgba(219,219,216,0.8)',
32
		shadow: false
33
	},
34
	legend: {
35
		itemStyle: {
36
			fontWeight: 'bold',
37
			fontSize: '13px'
38
		}
39
	},
40
	xAxis: {
41
		gridLineWidth: 1,
42
		labels: {
43
			style: {
44
				fontSize: '12px'
45
			}
46
		}
47
	},
48
	yAxis: {
49
		minorTickInterval: 'auto',
50
		title: {
51
			style: {
52
				textTransform: 'uppercase'
53
			}
54
		},
55
		labels: {
56
			style: {
57
				fontSize: '12px'
58
			}
59
		}
60
	},
61
	plotOptions: {
62
		candlestick: {
63
			lineColor: '#404048'
64
		}
65
	},
66
 
67
 
68
	// General
69
	background2: '#F0F0EA'
70
 
71
};
72
 
73
// Apply the theme
74
Highcharts.setOptions(Highcharts.theme);