-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcarea.js
106 lines (105 loc) · 2.53 KB
/
mcarea.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
103
104
105
106
var MCArea = Highcharts.chart('container-mcarea', {
boost: {
enabled: true,
useGPUTranslations: true,
usePreallocated: true
},
title: {
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
},
tooltip: {
xDateFormat: '<b>%Y</b>',
crosshairs: true,
split: true,
valuePrefix: '$',
valueSuffix: ' ',
animation: false,
shadow: false,
valueDecimals: 0,
style: {
'font-family': 'Open Sans,sans-serif',
'font-size': '1.4rem'
}
},
chart: {
zoomType: 'xy',
panning: true,
panKey: 'shift'
},
series: [
{
name: 'Average',
visible: true,
type: 'line',
zIndex: 5,
boostThreshold: 0,
data: null,
marker: {
enabled: true
}
},
{
name: '25th-75th Percentile',
visible: true,
data: null,
type: 'arearange',
lineWidth: 0,
linkedTo: ':previous',
boostThreshold: 0,
color: '#A8FAFF',
fillOpacity: 0.5,
zIndex: 1,
marker: {
enabled: false
},
showInLegend: true
},
{
name: '10th-90th Percentile',
visible: true,
data: null,
type: 'arearange',
lineWidth: 0,
linkedTo: ':previous',
boostThreshold: 0,
color: '#A8FAFF',
fillOpacity: 0.3,
zIndex: 0,
marker: {
enabled: false
},
showInLegend: true
}]
});