-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaverage.php
More file actions
149 lines (141 loc) · 4.81 KB
/
Copy pathaverage.php
File metadata and controls
149 lines (141 loc) · 4.81 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<title>OWLshares</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript">
$(function () {
Highcharts.chart('container1', {
chart: {
type: 'column'
},
title: {
text: 'Read important information about results and other investment disclosures'
},
subtitle: {
text: 'Owl Chart'
},
xAxis: {
categories: [
'1Yr',
'3Yr',
'5Yr',
'10Yr',
'Since Inception'
],
crosshair: true
},
yAxis: {
min: 0,
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: 'NAV',
data: [0, 0, 0, 0, 2.22]
}, {
name: 'Market Price',
data: [0, 0, 0, 0, 2.88]
}, {
name: 'MSCI Emerging Markets Index',
data: [0, 0, 0, 0, 0]
}]
});
});
$(function () {
Highcharts.chart('container2', {
chart: {
type: 'column'
},
title: {
text: 'Read important information about results and other investment disclosures'
},
subtitle: {
text: 'Owl Chart'
},
xAxis: {
categories: [
'1Yr',
'3Yr',
'5Yr',
'10Yr',
'Since Inception'
],
crosshair: true
},
yAxis: {
min: 0,
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: 'NAV',
data: [0, 0, 0, 0, 9.08]
}, {
name: 'Market Price',
data: [0, 0, 0, 0, 10.13]
}, {
name: 'MSCI Emerging Markets Index',
data: [0, 0, 0, 0, 0]
}]
});
});
jQuery(document).on( 'shown.bs.tab', 'a[data-toggle="tab"]', function (e) { // on tab selection event
jQuery( ".contains-chart" ).each(function() { // target each element with the .contains-chart class
var chart = jQuery(this).highcharts(); // target the chart itself
chart.reflow() // reflow that chart
});
})
</script>
</head>
<body>
<div class="container">
<h2>AVERAGE ANNUAL TOTAL RETURNS</h2>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">Month End</a></li>
<li><a data-toggle="tab" href="#menu1">Quarter End</a></li>
</ul>
<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<h3>Month End</h3>
<div id="container1" class="contains-chart" style="min-width: 310px; max-width: 100%; height: 400px; margin: 0 auto"></div>
</div>
<div id="menu1" class="tab-pane fade">
<h3>Quarter End</h3>
<div id="container2" class="contains-chart" style="min-width: 310px; max-width: 100%; height: 400px; margin: 0 auto"></div>
</div>
</div>
</div>
</body>
</html>