-
Notifications
You must be signed in to change notification settings - Fork 0
/
breakdown-sample.html
190 lines (156 loc) · 5.86 KB
/
breakdown-sample.html
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<title>TrialFlow</title>
<link data-turbolinks-track="true" href="css/bootstrap.css" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="jquery/jquery.qtip.min.css" media="all" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery/jquery.qtip.js"></script>
<script src="builtio-js-sdk/sdk/builtio-min.js"></script>
<script src="https://www.google.com/jsapi"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="Aqx2+NFundWUblgaKzxVK/z+aIrMsVb5saSMq6g0oyM=" name="csrf-token" />
</head>
<body>
<header id="header">
<h1></h1>
<span >
</span>
</header>
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Diabetes<small> Overview</small></h1>
</div>
</div>
<div class="row">
<div id="chart_div" style="width: 600px; height: 250px;"></div>
<!-- draw bar graph indicating # patients per clinic-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([["Site", "Number of Patients"], ["Cleveland Clinic", 33], ["Marie Curie", 26], ["Oxford", 51]]);
var options = {
title: 'Clinic Breakdown',
hAxis: {title: 'Sites', titleTextStyle: {color: 'red'}},
vAxis: {viewWindowMode: 'explicit', viewWindow: {max:55,min:0}}
};
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</div>
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Status<small> by Location</small></h1>
</div>
</div>
<div class="row">
<div class="col-md-4 portfolio-item">
<div id="piechart1" style="width: 100%;"></div>
<h3><a href="#">Cleveland Clinic</a>
<span class="label label-danger"><a id="danger" style="text-decoration:none; color:#ffffff;">6</a></h3>
<h4>Protocol Total: 33</h4>
<h5><ul>
<li>Pending: 5</li>
<li>Active: 24</li>
<li>Done: 4</li>
</ul></h5>
<script type="text/javascript">
$(document).ready(function()
{
$('#danger').qtip({
content: {
text: '<ul><li>Group I patient glucose levels out of range</li><li>Group II patient arrived on Nov 24, 2013 instead of Nov 25, 2013</li></ul>',
title: 'Recent Errors'
},
style: {
classes: 'qtip-red',
},
position: {
my: 'bottom left', // Position my top left...
at: 'top right', // at the bottom right of...
target: $('#danger') // my target
},
show: 'mouseover',
hide: 'mouseout'
});
});
</script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([["State", "Total"], ["Pending", 5],["Active", 24], ["Done", 4]]);
var options = {
title: 'Protocol States',
pieHole: 0.4,
colors:['orange','#109618','#3366CC']
};
var chart = new google.visualization.PieChart(document.getElementById('piechart1'));
chart.draw(data, options);
}
</script>
</div>
<div class="col-md-4 portfolio-item">
<div id="piechart4" style="width: 100%;"></div>
<h3><a href="#">Marie Curie</a>
<span class="label label-success">0</span></h3>
<h4>Protocol Total: 26</h4>
<h5><ul>
<li>Pending: 3</li>
<li>Active: 23</li>
<li>Done: 0</li>
</ul></h5>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([["State", "Total"], ["Pending", 3], ["Active", 23], ["Done", 0]]);
var options = {
title: 'Protocol States',
pieHole: 0.4,
colors:['orange','#109618','#3366CC']
};
var chart = new google.visualization.PieChart(document.getElementById('piechart4'));
chart.draw(data, options);
}
</script>
</div>
<div class="col-md-4 portfolio-item">
<div id="piechart2" style="width: 100%;"></div>
<h3><a href="#">Oxford</a>
<span class="label label-success">0</span></h3>
<h4>Protocol Total: 51</h4>
<h5><ul>
<li>Pending: 7</li>
<li>Active: 42</li>
<li>Done: 2</li>
</ul></h5>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([["State", "Total"], ["Pending", 7], ["Active", 42], ["Done", 2]]);
var options = {
title: 'Protocol States',
pieHole: 0.4,
colors:['orange','#109618','#3366CC']
};
var chart = new google.visualization.PieChart(document.getElementById('piechart2'));
chart.draw(data, options);
}
</script>
</div>
</div>
</div>
<div class="footer">
</div>
<script src="js/breakdown.js"></script>
</body>
</html>