-
Notifications
You must be signed in to change notification settings - Fork 0
/
histarea.js
102 lines (99 loc) · 2.19 KB
/
histarea.js
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
var HISTArea = Highcharts.chart('container-histarea', {
boost: {
enabled: true,
useGPUTranslations: true,
usePreallocated: true
},
chart: {
zoomType: 'xy',
panning: true,
panKey: 'shift'
},
title: {
text: null
},
subtitle: {
text: null
},
xAxis: {
type: 'datetime',
crosshair: {
width: 2,
color: 'gray',
dashStyle: 'shortdot'
},
labels: {
style: {
'font-family': 'Open Sans,sans-serif',
'font-size': '1rem'
}
}
},
yAxis: {
title: {
text: "Account Value",
style: {
'font-family': 'Open Sans,sans-serif',
'font-size': '1rem'
}
},
labels: {
format: '${value}',
style: {
'font-family': 'Open Sans,sans-serif',
'font-size': '0.8rem'
}
},
min: 0,
max: 1000000
},
plotOptions: {
animation: false,
shadow: false
},
tooltip: {
xDateFormat: '<b>%Y</b>',
crosshairs: true,
split: true,
valuePrefix: '$',
valueSuffix: ' ',
valueDecimals: 0,
animation: false,
shadow: false,
style: {
'font-family': 'Open Sans,sans-serif',
'font-size': '1.4rem'
}
},
series: [{
name: 'Worst Year',
data: null,
showInLegend: true
}, {
name: '2nd Worst Year',
data: null,
showInLegend: true
},
{
name: '3rd Worst Year',
data: null,
showInLegend: true
}, {
name: 'Best Year',
data: null,
showInLegend: true
}, {
name: '2nd Best Year',
data: null,
showInLegend: true
},
{
name: '3rd Best Year',
data: null,
showInLegend: true
}, {
name: 'Average of All Years',
data: null,
showInLegend: true
}]
});