-
Notifications
You must be signed in to change notification settings - Fork 1
/
data_visualization.html
158 lines (129 loc) · 6.42 KB
/
data_visualization.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jester 5.0</title>
<!-- Bootstrap -->
<link href="bower_components/bootstrap-css/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="bower_components/angular-material/angular-material.css">
<link rel="stylesheet" href="bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.css">
<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto:300,700' rel='stylesheet' type='text/css'>
<!-- JS Scripts -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="bower_components/bootstrap-css/js/bootstrap.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-aria/angular-aria.min.js"></script>
<script src="bower_components/angular-animate/angular-animate.min.js"></script>
<script src="bower_components/angular-material/angular-material.min.js"></script>
<script src="bower_components/highcharts-release/highcharts.js"></script>
<script src="bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js"></script>
<script src="bower_components/jquery-number/jquery.number.min.js"></script>
<script src="js/data_visualization.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Favicon -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<!-- Custom style sheet -->
<link rel="stylesheet" href="css/data_visualization.css">
</head>
<body ng-app="data_visualization">
<div class="content container">
<div class="row"><h1>Jester Visualizations</h1></div>
<div ng-controller="ratings_histogram_controller" class="visualization">
<div class="row">
<div class="col-md-12">
<h3>Ratings Histogram</h3>
<p>A histogram of all ratings submitted to Jester 5.0 <br/>Ratings are continuous and real valued on
the interval [-10, 10].</p>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div id="ratings_histogram" style="width: 600px; height: 400px; margin: 0 auto"></div>
</div>
<div class="col-md-4" id="options">
<h4>Statistics</h4>
<p>Bins: {{bins}}</p>
<p>Bin Width: {{bin_width | number:2}}</p>
<p># of Ratings: {{num_ratings}}</p>
<p>Mean rating: {{mean_rating | number:2}}</p>
<p>Median rating: {{median_rating | number:2}}</p>
<h4>Options</h4>
<md-checkbox class="md-hue-3" ng-model="filter_null">
Filter 0.0 ratings
</md-checkbox>
<p>Date Range:</p>
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control ratings_hist_actual" id="ratings_hist_start_date"
name="start"/>
<span class="input-group-addon">to</span>
<input type="text" class="input-sm form-control ratings_hist_actual" id="ratings_hist_end_date"
name="end"/>
</div>
<md-button class="md-raised" ng-click="get_histogram()" style="margin-top: 25px">Update</md-button>
</div>
</div>
</div>
<div ng-controller="num_ratings_histogram_controller" class="visualization">
<div class="row">
<div class="col-md-12">
<h3>Number of Ratings/User Histogram</h3>
<p>A histogram of the number of ratings submitted by each user.</p>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div id="num_ratings_histogram" style="width: 600px; height: 400px; margin: 0 auto"></div>
</div>
<div class="col-md-4" id="options">
<h4>Statistics</h4>
<p>Bins: {{bins}}</p>
<p>Bin Width: {{bin_width | number:2}}</p>
<p># of Ratings: {{num_ratings}}</p>
<p>Mean # of ratings/users: {{mean_num_ratings | number:2}}</p>
<p>Median # of ratings/users: {{median_rating}}</p>
<h4>Options</h4>
<md-checkbox class="md-hue-3" ng-model="filter_null">
Filter users that have rated 0 jokes
</md-checkbox>
<md-button class="md-raised" ng-click="get_histogram()" style="margin-top: 25px">Update</md-button>
</div>
</div>
</div>
<div ng-controller="num_ratings_over_time" class="visualization">
<div class="row">
<div class="col-md-12">
<h3>Number of Ratings Over Time</h3>
<p>Displays the number of ratings received over a certain period of time.</p>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div id="num_ratings_over_time" style="width: 600px; height: 400px; margin: 0 auto"></div>
</div>
<div class="col-md-4" id="options">
<h4>Statistics</h4>
<p># of Ratings: {{num_ratings}}</p>
<p>Mean # of ratings: {{mean_num_ratings | number:2}}</p>
<p>Median # of ratings: {{median_rating}}</p>
<h4>Options</h4>
<md-checkbox class="md-hue-3" ng-model="filter_null">
Filter users that have rated 0 jokes
</md-checkbox>
<md-button class="md-raised" ng-click="get_histogram()" style="margin-top: 25px">Update</md-button>
</div>
</div>
</div>
</div>
</body>
</html>