-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-4.html
169 lines (156 loc) · 6.05 KB
/
dashboard-4.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
<!DOCTYPE html>
<html>
<head>
<title>Dashboard 4 - chart.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/shared-assets/images/m-logo-black-favicon.png" />
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="shared-assets/css/reset.css" />
<link rel="stylesheet" type="text/css" href="shared-assets/css/layout.css" />
<link rel="stylesheet" type="text/css" href="shared-assets/css/shared.css" />
<link rel="stylesheet" type="text/css" href="shared-assets/css/cards.css" />
<!-- Axios -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- ChartJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.8.2/chart.min.js"
integrity="sha512-zjlf0U0eJmSo1Le4/zcZI51ks5SjuQXkU0yOdsOBubjSmio9iCUp8XPLkEAADZNBdR9crRy3cniZ65LF2w8sRA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- AOS CSS -->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link rel="stylesheet" type="text/css" href="dashboard-4-assets/css/reset.css" />
<link rel="stylesheet" type="text/css" href="dashboard-4-assets/css/layout.css" />
<link rel="stylesheet" type="text/css" href="dashboard-4-assets/css/cards.css" />
</head>
<body data-theme="dark">
<div id="preloader" class="preloader products-loading radial-bar-loading">
<div class="spinner"></div>
</div>
<button type="button" onclick="toggleDarkMode(this)" class="dark-mode-toggle uil "></button>
<div class="container">
<div class="card card-headline card-headline1">
<div>
<h4 class="card-h4">World</h4>
<h2 class="card-h2" id="totalWorldProducts"></h2>
</div>
<span class="card-headline-icon card-headline-icon-primary uil uil-arrow-growth"></span>
</div>
<div class="card card-headline card-headline2">
<div>
<h4 class="card-h4">Norway</h4>
<h2 class="card-h2" id="totalNoProducts"></h2>
</div>
<span class="card-headline-icon card-headline-icon-primary uil uil-users-alt"></span>
</div>
<div class="card card-bar-figure-chart">
<div class="card-bar-figure-chart-wrapper">
<h2 class="card-h2 card-bar-figure-chart-h2">Top Brands</h2>
<canvas id="figureBarChart" width="400" height="140"></canvas>
</div>
<div class="card-bar-figure-chart-figures">
<div>
<h4 class="card-h4">Average Sales</h4>
<h2 class="card-h2">$1650</h2>
</div>
<div>
<h4 class="card-h4">Commission</h4>
<h2 class="card-h2">$25,300</h2>
</div>
<div>
<h4 class="card-h4">Revenue</h4>
<h2 class="card-h2">$69,000</h2>
</div>
<div>
<h4 class="card-h4">Expenses</h4>
<h2 class="card-h2">$2,210,000</h2>
</div>
</div>
</div>
<div class="card card-area-table-chart">
<div class="card-area-table-chart-wrapper">
<header class="card-header">
<div>
<h2 class="card-h2">Sales Activity</h2>
<h3 class="card-h3">Select sales by year</h3>
</div>
<div>
<button onclick="selectYear(this, 2021)" type="button">2021</button>
<button onclick="selectYear(this, 2022)" class="active" type="button">2022</button>
</div>
</header>
<canvas id="areaTableChart" width="400" height="220"></canvas>
</div>
<div class="card-area-table-wrapper">
<table class="card-area-table">
<tr>
<th></th>
<th>2021</th>
<th>2022</th>
</tr>
<tr>
<td>Average Sales</td>
<td>$1650</td>
<td>$3740</td>
</tr>
<tr>
<td>Commission</td>
<td>$25,300</td>
<td>$45,300</td>
</tr>
<tr>
<td>Revenue</td>
<td>$69,000</td>
<td>$234,000</td>
</tr>
</table>
</div>
</div>
<div data-aos="fade-up" class="card card-radial-bar-chart">
<h2 class="card-h2 no-margin">Product Focus</h2>
<div class="select-wrapper">
<select id="productSelect" onchange="selectProduct(this.value)"></select>
</div>
<div class="card-radial-bar-chart-row">
<div class="card-radial-bar-chart-wrapper">
<div class="card-radial-bar-rail"></div>
<div class="card-radial-bar-canvas-wrapper">
<canvas id="radialBarChart"></canvas>
</div>
</div>
<div>
<h2 class="card-radial-bar-chart-feature-h2">Breakdown</h2>
<div class="card-radial-bar-chart-feature-grid" id="factsGrid"></div>
</div>
</div>
<div class="card-radial-bar-chart-footer">
<button class="card-radial-bar-chart-button">Report</button>
<button class="card-radial-bar-chart-button primary">Action</button>
</div>
</div>
<div data-aos="fade-up" class="card card-paged-table">
<div class="card-paged-table-header">
<div>
<h2 class="card-h2">Products</h2>
<h3 class="card-h3">A paged table of all products</h3>
</div>
</div>
<div class="paged-table-wrapper">
<div class="paged-table-spinner loading" id="pagedTableSpinner"></div>
<table id="pagedTable" class="loading"></table>
</div>
<div class="card-footer">
<span class="paged-table-count" id="pagedTableCount"></span>
<div id="pagination" class="pagination"></div>
</div>
</div>
</div>
<script src="dashboard-4-assets/js/main.js"></script>
<!-- AOS scripts -->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
</body>
</html>