-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbreakdown.html
156 lines (129 loc) · 4.86 KB
/
breakdown.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
<!DOCTYPE html>
<html>
<head>
<title>TrialFlow</title>
<link data-turbolinks-track="true" href="css/bootstrap.css" media="all" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.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" id="overview"></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", 4], ["Marie Curie", 3], ["Oxford", 4]]);
var options = {
title: 'Clinic Breakdown',
hAxis: {title: 'Sites', titleTextStyle: {color: 'red'}},
vAxis: {viewWindowMode: 'explicit', viewWindow: {max:4,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" id="piecharts">
<!--
<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">6</h3>
<h4>Protocol Total: 4</h4>
<h5><ul>
<li>Pending: 1</li>
<li>Active: 2</li>
<li>Done: 1</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", 1], ["Active", 2], ["Done", 1]]);
var options = {
title: 'Protocol States'
};
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: 3</h4>
<h5><ul>
<li>Pending: 1</li>
<li>Active: 0</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", 1], ["Active", 0], ["Done", 2]]);
var options = {
title: 'Protocol States'
};
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: 4</h4>
<h5><ul>
<li>Pending: 1</li>
<li>Active: 3</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", 1], ["Active", 3], ["Done", 0]]);
var options = {
title: 'Protocol States'
};
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>