-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnalyticsPageNotAccessible.html
171 lines (162 loc) · 5.94 KB
/
AnalyticsPageNotAccessible.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sparks - A company that cares about you</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.graph-container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
border: 2px solid #C7832A;
border-radius: 10px;
background-color: #f5f5f5;
text-align: center;
}
.graph-container h2 {
margin-bottom: 20px;
color: #C7832A;
}
canvas {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<div class="flex" id="main-nav">
<div class="flex">
<span class="sparks item" style="border: none; font-size: x-large;">Sparks</span>
</div>
<div class="flex">
<a id="home" class="item" onclick="activateLink('HomePageNotAccessible.html')">
Home
</a>
</div>
<div class="flex" id="our-services">
<div class="item">
Our Services <i class="chevron"></i>
</div>
<div class="flex subitems">
<a class="item" style="margin-bottom:0px !important;" onclick="activateLink('PersonalEncouragementServicesNotAccessible.html')">
Request a personal encouragement message
</a>
</div>
</div>
<div class="flex" id="interested-in-us">
<div class="item">
Interested in Us? <i class="chevron"></i>
</div>
<div class="flex subitems">
<a class="item" onclick="activateLink('OurMissionPageNotAccessible.html')">
Our Mission
</a>
<a class="item" onclick="activateLink('OurTeamPageNotAccessible.html')">
Our Team
</a>
<a class="item" style="margin-bottom: 0px !important;" onclick="activateLink('AnalyticsPageNotAccessible.html')">
Cool Company Analytics
</a>
</div>
</div>
</div>
<div class="main-content">
<h1><span class="sparks">Sparks</span> Company Analytics</h1>
<p>Here are some key metrics visualized to help you understand our growth and impact.</p>
<div class="graph-container">
<h2>Monthly Revenue Growth</h2>
<canvas id="revenueChart"></canvas>
</div>
<div class="graph-container">
<h2>User Engagement Over Time</h2>
<canvas id="engagementChart"></canvas>
</div>
<div class="graph-container">
<h2>Our Popularity</h2>
<canvas id="productChart"></canvas>
</div>
</div>
<script>
// Monthly Revenue Growth
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Your Company Revenue ($)',
data: [10000, 12000, 13000, 15000, 17000, 19000, 20000, 21000, 22000, 23000, 24000, 24500],
borderColor: '#C7832A',
backgroundColor: 'rgba(199, 131, 42, 0.2)',
borderWidth: 2
},
{
label: 'Our Revenue ($)',
data: [12000, 15000, 17000, 20000, 22000, 25000, 27000, 30000, 32000, 35000, 38000, 40000],
borderColor: '#C7832A',
backgroundColor: 'rgba(199, 131, 42, 0.2)',
borderWidth: 2
}
]
},
options: {
responsive: true,
plugins: {
legend: {
display: true,
position: 'top'
}
}
}
});
// User Engagement Over Time
const engagementCtx = document.getElementById('engagementChart').getContext('2d');
new Chart(engagementCtx, {
type: 'bar',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Active Users',
data: [200, 500, 750, 1200],
backgroundColor: ['#C7832A', '#A66520', '#C7832A', '#A66520'],
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: true,
position: 'top'
}
}
}
});
// Product Popularity
const productCtx = document.getElementById('productChart').getContext('2d');
new Chart(productCtx, {
type: 'pie',
data: {
labels: ['Clients who love us', 'Clients who likes us', 'Clients who thinks we are okay', 'Clients whose opinions do not matter'],
datasets: [{
label: 'Popularity',
data: [40, 30, 20, 10],
backgroundColor: ['#C7832A', '#A66520', '#D8A54A', '#F3C77A'],
hoverOffset: 4
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: true,
position: 'top'
}
}
}
});
</script>
<script src="functions.js"></script>
</body>
</html>