forked from ISM6225/Assignment_LookAndFeel
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdashboard.html
More file actions
163 lines (153 loc) · 6.02 KB
/
dashboard.html
File metadata and controls
163 lines (153 loc) · 6.02 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- viewport meta tag on all pages -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" type="image/png" href="./img/favicon.ico">
<link href='https://fonts.googleapis.com/css?family=Abel' rel='stylesheet'>
<link rel="stylesheet" type="text/css" href="./css/main.css">
<link rel="stylesheet" type="text/css" href="./css/responsive.css">
<!-- load font awesome fonts -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.js"></script>
<title>App Dashboard - Group 2</title>
</head>
<body>
<div class="topnav sticky" id="topNavToggle" style="z-index:1000;">
<!-- Set class="active" on your page -->
<a href="./index.html">Home</a>
<!-- sarah -->
<a href="./favorite.html">My Favorite App</a>
<!-- deb -->
<a href="./blog.html">Blog</a>
<!-- neeraj -->
<a href="./dashboard.html" class="active">Most Popular Apps</a>
<a href="./about.html">About Us</a>
<a href="javascript:void(0);" class="icon" onclick="toggleNav()">
<i class="fa fa-bars"></i>
</a>
<div class="logo">
<img src="./img/usf-logo-png-2.png" height="30px" />
</div>
</div>
<!-- CONTENT -->
<div class="content">
<div class="row clear-4" style="margin-top:3em;">
<div class="col-3">
<div class="card" style="background-color:coral; height: auto; padding: 1em;">
<div class="row">
<span style="font-size:large;font-weight:500;"> Total Apps:</span>
</div>
<div class="row">
<i class="fa fa-mobile"></i>
<span> 35</span>
</div>
</div>
</div>
<div class="col-3">
<div class="card" style="background-color:mediumseagreen; height: auto; padding: 1em;">
<div class="row">
<span style="font-size:large;font-weight:500;"> Average Rating:</span>
</div>
<div class="row">
<i class="fa fa-bar-chart"></i>
<span> 4.38</span>
</div>
</div>
</div>
<div class="col-3">
<div class="card" style="background-color:cornflowerblue; height: auto; padding: 1em;">
<div class="row">
<span style="font-size:large;font-weight:500;"> Avg Rating (Paid):</span>
</div>
<div class="row">
<i class="fa fa-line-chart"></i>
<span> 4.24</span>
</div>
</div>
</div>
<div class="col-3">
<div class="card" style="background-color:lavender; height: auto; padding: 1em;">
<div class="row">
<span style="font-size:large;font-weight:500;"> Avg Rating (Free):</span>
</div>
<div class="row">
<i class="fa fa-star"></i>
<span> 4.42</span>
</div>
</div>
</div>
</div>
<div class="row" style="display:flex;justify-content:center;margin-top:2em;margin-bottom:1.5em;">
<div class="col-9 card">
<canvas id="ratingschart" style="position: relative;"></canvas>
</div>
</div>
<div class="row" style="display:flex;justify-content:center;margin-top:1.5em;margin-bottom:3em;">
<div class="col-9 card">
<canvas id="averageRatingsChart" style="position: relative;"></canvas>
</div>
</div>
</div>
<footer class="col-12 text-center">
<div>
<h2>Group 2 - App Tool</h2>
<span class="copyright">© 2020 - Deborah Gause, Neeraj Kumar, Sarah Wasselle, and Alexander Seufert</span>
</div>
</footer>
<script>
new Chart(document.getElementById("ratingschart"), {
type: "bar",
data: {
labels: ["Spotify: M","Pandora: M","TikTok - M","PayPal: Mo","Twitter","eBay","Google Doc","Roku - Off","Uber - Req","Tinder - D"],
datasets: [
{
label: "Ratings Count",
backgroundColor: ["#3e95cd", "#8e5ea2", "#3cba9f", "#e8c3b9", "#c45850", "#3e95cd", "#8e5ea2", "#3cba9f", "#e8c3b9", "#c45850"],
data: [13430120,7076709,6110515,3760443,3247709,1548117,1429664,1278849,1202339,801929]
}
]
},
options: {
legend: { display: false },
title: {
display: true,
text: "Top 10 Most Rated Apps"
}
}
});
new Chart(document.getElementById("averageRatingsChart"), {
type: "bar",
data: {
labels: ["USF Horns","PayPal: Mo","USF FCU Mo","Fetch Rewa","Spotify: M","Pandora: M","eBay","Google Doc","Roku","Star Walk"],
datasets: [
{
label: "Ratings for Current Version",
backgroundColor: ["#3e95cd", "#8e5ea2", "#3cba9f", "#e8c3b9", "#c45850", "#3e95cd", "#8e5ea2", "#3cba9f", "#e8c3b9", "#c45850"],
data: [5,4.83237,4.79227,4.78692,4.78625,4.77752,4.77592,4.76586,4.74343,4.73268]
}
]
},
options: {
legend: { display: false },
title: {
display: true,
text: "Top 10 Highest Rated Apps"
}
}
});
</script>
<script>
function toggleNav() {
var x = document.getElementById("topNavToggle");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
</body>
</html>