-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
223 lines (203 loc) · 9.7 KB
/
index.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Montserrat Font -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="../css/styles.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
</head>
<body>
<div class="grid-container">
<!-- Header -->
<header class="header">
<!-- Tombol Kembali -->
<div class="header-left">
<a href="../index.html" class="back-button">
<span class="material-icons-outlined">arrow_back</span>
</a>
</div>
</header>
<!-- End Header -->
<!-- Start Section -->
<section id="sidebar">
<div class="sidebar-title">
<div class="sidebar-brand">
<span class="material-icons-outlined">shopping_cart</span> STORE
</div>
<span class="material-icons-outlined" onclick="closeSidebar()">close</span>
</div>
<ul class="sidebar-list">
<li class="sidebar-list-item">
<a href="../index.html" class="back-button">
<span class="material-icons-outlined">home</span> Home
</a>
</li>
<li class="sidebar-list-item">
<a href="Dashboard.html" class="back-button">
<span class="material-icons-outlined">dashboard</span> Dashboard
</a>
</li>
<li class="sidebar-list-item">
<a href="product.html" class="back-button">
<span class="material-icons-outlined">inventory_2</span> Products
</a>
</li>
<li class="sidebar-list-item">
<a href="customers.html" class="back-button">
<span class="material-icons-outlined">groups</span> Customers
</a>
</li>
<li class="sidebar-list-item">
<a href="FAQ.html" class="back-button">
<span class="material-icons-outlined">help</span> FAQ
</a>
</li>
</ul>
</section>
<!-- End Section -->
<!-- Main -->
<main class="main-container">
<div class="main-title">
<h2>CoffeeShop Sales Dashboard</h2>
</div>
<div class="filters">
<label for="startDate">Start Date:</label>
<input type="date" id="startDate">
<label for="endDate">End Date:</label>
<input type="date" id="endDate">
<button id="applyFilter">Apply Filter</button>
</div>
<main class="main-container">
<h2>Summary Cards</h2>
<div class="main-cards">
<div class="card">
<div class="card-inner">
<h3>Total Sales</h3>
<span class="material-icons-outlined">paid</span>
</div>
<h1 id="totalSalesValue">0</h1>
</div>
<div class="card">
<div class="card-inner">
<h3>Total Quantity</h3>
<span class="material-icons-outlined">category</span>
</div>
<h1 id="totalQtyValue">0</h1>
</div>
<div class="card">
<div class="card-inner">
<h3>Total Order</h3>
<span class="material-icons-outlined">groups</span>
</div>
<h1 id="totalOrderValue">0</h1>
</div>
</div>
<div class="charts-card">
<h2 class="chart-title"> Daily Chart </h2>
<div>
<label for="monthSelect">Select Month:</label>
<select id="monthSelect" onchange="filterDataByMonth()">
<option value="all">All</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
</select>
<label for="valueSelect">Select Value:</label>
<select id="valueSelect" onchange="filterDataByMonth()">
<option value="total_sales">Total Sales</option>
<option value="total_qty">Total Quantity</option>
<option value="total_order">Total Orders</option>
<option value="aov">AOV</option>
</select>
</div>
<canvas class="line-chart" id="lineChart" ></canvas>
</div>
<div class="charts">
<div class="charts-card">
<h2 class="chart-title"> Monthly Chart</h2>
<div>
<canvas id="barChart" width="600" height="400"></canvas>
<ul>
<li>
<label for="barMonthSelect">Select Month:</label>
<select id="barMonthSelect" onchange="updateBarChart()">
<option value="all">All</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
</select>
</li>
<li>
<label for="barValueSelect">Select Value:</label>
<select id="barValueSelect" onchange="updateBarChart()">
<option value="total_sales">Total Sales</option>
<option value="total_qty">Total Quantity</option>
<option value="total_order">Total Orders</option>
<option value="aov">AOV</option>
</select>
</li>
</ul>
</div>
</div>
<div class="charts-card">
<h2 class="chart-title"> Location and Item Category </h2>
<div>
<canvas id="stackedBarChartcategoru" ></canvas>
<label for="dataSelector">Select Value:</label>
<select id="dataSelector">
<option value="total_order">Total Orders</option>
<option value="total_sales">Total Sales</option>
<option value="aov">Average Order Value</option>
<option value="total_qty">Total Quantity</option>
</select>
</div>
</div>
<div class="charts-card">
<h2 class="chart-title"> Price and Category </h2>
<div>
<canvas id="stackedBarChartprice_item" ></canvas>
<label for="dataSelector2">Select Value:</label>
<select id="dataSelector2">
<option value="total_order">Total Orders</option>
<option value="total_sales">Total Sales</option>
<option value="aov">Average Order Value</option>
<option value="total_qty">Total Quantity</option>
</select>
</div>
</div>
<div class="charts-card">
<h2 class="chart-title"> Price and Location </h2>
<div>
<canvas id="stackbarpriceloc" ></canvas>
<label for="dataSelector3">Select Value:</label>
<select id="dataSelector3">
<option value="total_order">Total Orders</option>
<option value="total_sales">Total Sales</option>
<option value="aov">Average Order Value</option>
<option value="total_qty">Total Quantity</option>
</select>
</div>
</div>
</div>
</main>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns"></script>
<script type="module" src="../js/chartjs.js"></script>
<script src="../js/scripts.js"></script>
</body>
</html>