tidy commited on
Commit
efe1982
·
verified ·
1 Parent(s): 88e6d99

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +486 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Data
3
- emoji: 🏆
4
- colorFrom: blue
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: data
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,486 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Data Analytics Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
10
+ <style>
11
+ .sidebar {
12
+ transition: all 0.3s ease;
13
+ }
14
+ .sidebar.collapsed {
15
+ width: 70px;
16
+ }
17
+ .sidebar.collapsed .nav-text {
18
+ display: none;
19
+ }
20
+ .main-content {
21
+ transition: all 0.3s ease;
22
+ }
23
+ .card-hover:hover {
24
+ transform: translateY(-5px);
25
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
26
+ }
27
+ .chart-container {
28
+ position: relative;
29
+ height: 300px;
30
+ }
31
+ .data-table {
32
+ max-height: 400px;
33
+ overflow-y: auto;
34
+ }
35
+ .data-table::-webkit-scrollbar {
36
+ width: 6px;
37
+ }
38
+ .data-table::-webkit-scrollbar-thumb {
39
+ background-color: rgba(0,0,0,0.2);
40
+ border-radius: 3px;
41
+ }
42
+ </style>
43
+ </head>
44
+ <body class="bg-gray-50">
45
+ <div class="flex h-screen overflow-hidden">
46
+ <!-- Sidebar -->
47
+ <div class="sidebar bg-indigo-800 text-white w-64 flex flex-col">
48
+ <div class="p-4 flex items-center justify-between border-b border-indigo-700">
49
+ <div class="flex items-center">
50
+ <i class="fas fa-chart-line text-2xl mr-3"></i>
51
+ <span class="nav-text text-xl font-bold">AnalyticsPro</span>
52
+ </div>
53
+ <button id="toggleSidebar" class="text-white focus:outline-none">
54
+ <i class="fas fa-bars"></i>
55
+ </button>
56
+ </div>
57
+ <div class="flex-1 overflow-y-auto">
58
+ <nav class="p-4">
59
+ <div class="mb-6">
60
+ <p class="nav-text text-indigo-300 uppercase text-xs font-semibold mb-2">Dashboard</p>
61
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg bg-indigo-700 text-white mb-1">
62
+ <i class="fas fa-home mr-3"></i>
63
+ <span class="nav-text">Overview</span>
64
+ </a>
65
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200 mb-1">
66
+ <i class="fas fa-chart-pie mr-3"></i>
67
+ <span class="nav-text">Analytics</span>
68
+ </a>
69
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200">
70
+ <i class="fas fa-bell mr-3"></i>
71
+ <span class="nav-text">Reports</span>
72
+ </a>
73
+ </div>
74
+ <div class="mb-6">
75
+ <p class="nav-text text-indigo-300 uppercase text-xs font-semibold mb-2">Data Management</p>
76
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200 mb-1">
77
+ <i class="fas fa-database mr-3"></i>
78
+ <span class="nav-text">Data Sources</span>
79
+ </a>
80
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200 mb-1">
81
+ <i class="fas fa-table mr-3"></i>
82
+ <span class="nav-text">Datasets</span>
83
+ </a>
84
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200">
85
+ <i class="fas fa-cogs mr-3"></i>
86
+ <span class="nav-text">Integrations</span>
87
+ </a>
88
+ </div>
89
+ <div>
90
+ <p class="nav-text text-indigo-300 uppercase text-xs font-semibold mb-2">Settings</p>
91
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200 mb-1">
92
+ <i class="fas fa-user mr-3"></i>
93
+ <span class="nav-text">Profile</span>
94
+ </a>
95
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg hover:bg-indigo-700 text-indigo-200">
96
+ <i class="fas fa-cog mr-3"></i>
97
+ <span class="nav-text">Settings</span>
98
+ </a>
99
+ </div>
100
+ </nav>
101
+ </div>
102
+ <div class="p-4 border-t border-indigo-700">
103
+ <div class="flex items-center">
104
+ <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full mr-3">
105
+ <div class="nav-text">
106
+ <p class="font-medium">Sarah Johnson</p>
107
+ <p class="text-xs text-indigo-300">Admin</p>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+
113
+ <!-- Main Content -->
114
+ <div class="main-content flex-1 overflow-auto">
115
+ <!-- Header -->
116
+ <header class="bg-white shadow-sm p-4 flex items-center justify-between">
117
+ <h1 class="text-2xl font-bold text-gray-800">Data Analytics Dashboard</h1>
118
+ <div class="flex items-center space-x-4">
119
+ <div class="relative">
120
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
121
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
122
+ </div>
123
+ <button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
124
+ <i class="fas fa-bell"></i>
125
+ </button>
126
+ <button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
127
+ <i class="fas fa-question-circle"></i>
128
+ </button>
129
+ </div>
130
+ </header>
131
+
132
+ <!-- Dashboard Content -->
133
+ <main class="p-6">
134
+ <!-- Stats Cards -->
135
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
136
+ <div class="bg-white rounded-xl shadow-sm p-6 transition-all duration-300 card-hover">
137
+ <div class="flex items-center justify-between">
138
+ <div>
139
+ <p class="text-gray-500">Total Users</p>
140
+ <h3 class="text-2xl font-bold mt-2">12,345</h3>
141
+ <p class="text-green-500 text-sm mt-1 flex items-center">
142
+ <i class="fas fa-arrow-up mr-1"></i> 12.5% from last month
143
+ </p>
144
+ </div>
145
+ <div class="bg-indigo-100 p-3 rounded-full">
146
+ <i class="fas fa-users text-indigo-600 text-xl"></i>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ <div class="bg-white rounded-xl shadow-sm p-6 transition-all duration-300 card-hover">
151
+ <div class="flex items-center justify-between">
152
+ <div>
153
+ <p class="text-gray-500">Revenue</p>
154
+ <h3 class="text-2xl font-bold mt-2">$48,245</h3>
155
+ <p class="text-green-500 text-sm mt-1 flex items-center">
156
+ <i class="fas fa-arrow-up mr-1"></i> 8.2% from last month
157
+ </p>
158
+ </div>
159
+ <div class="bg-green-100 p-3 rounded-full">
160
+ <i class="fas fa-dollar-sign text-green-600 text-xl"></i>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ <div class="bg-white rounded-xl shadow-sm p-6 transition-all duration-300 card-hover">
165
+ <div class="flex items-center justify-between">
166
+ <div>
167
+ <p class="text-gray-500">Conversion Rate</p>
168
+ <h3 class="text-2xl font-bold mt-2">3.42%</h3>
169
+ <p class="text-red-500 text-sm mt-1 flex items-center">
170
+ <i class="fas fa-arrow-down mr-1"></i> 1.1% from last month
171
+ </p>
172
+ </div>
173
+ <div class="bg-purple-100 p-3 rounded-full">
174
+ <i class="fas fa-percentage text-purple-600 text-xl"></i>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ <div class="bg-white rounded-xl shadow-sm p-6 transition-all duration-300 card-hover">
179
+ <div class="flex items-center justify-between">
180
+ <div>
181
+ <p class="text-gray-500">Avg. Session</p>
182
+ <h3 class="text-2xl font-bold mt-2">4m 23s</h3>
183
+ <p class="text-green-500 text-sm mt-1 flex items-center">
184
+ <i class="fas fa-arrow-up mr-1"></i> 15.8% from last month
185
+ </p>
186
+ </div>
187
+ <div class="bg-blue-100 p-3 rounded-full">
188
+ <i class="fas fa-clock text-blue-600 text-xl"></i>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+
194
+ <!-- Charts Row -->
195
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
196
+ <!-- Line Chart -->
197
+ <div class="bg-white rounded-xl shadow-sm p-6">
198
+ <div class="flex items-center justify-between mb-6">
199
+ <h2 class="text-lg font-semibold text-gray-800">Revenue Overview</h2>
200
+ <div class="flex space-x-2">
201
+ <button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-700 rounded-full">Monthly</button>
202
+ <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Quarterly</button>
203
+ <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Yearly</button>
204
+ </div>
205
+ </div>
206
+ <div class="chart-container">
207
+ <canvas id="revenueChart"></canvas>
208
+ </div>
209
+ </div>
210
+
211
+ <!-- Bar Chart -->
212
+ <div class="bg-white rounded-xl shadow-sm p-6">
213
+ <div class="flex items-center justify-between mb-6">
214
+ <h2 class="text-lg font-semibold text-gray-800">User Acquisition</h2>
215
+ <div class="flex space-x-2">
216
+ <button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-700 rounded-full">Sources</button>
217
+ <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Devices</button>
218
+ </div>
219
+ </div>
220
+ <div class="chart-container">
221
+ <canvas id="acquisitionChart"></canvas>
222
+ </div>
223
+ </div>
224
+ </div>
225
+
226
+ <!-- Pie Chart and Data Table -->
227
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
228
+ <!-- Pie Chart -->
229
+ <div class="bg-white rounded-xl shadow-sm p-6 lg:col-span-1">
230
+ <h2 class="text-lg font-semibold text-gray-800 mb-6">Traffic Sources</h2>
231
+ <div class="chart-container">
232
+ <canvas id="trafficChart"></canvas>
233
+ </div>
234
+ </div>
235
+
236
+ <!-- Data Table -->
237
+ <div class="bg-white rounded-xl shadow-sm p-6 lg:col-span-2">
238
+ <div class="flex items-center justify-between mb-6">
239
+ <h2 class="text-lg font-semibold text-gray-800">Recent Transactions</h2>
240
+ <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500">
241
+ Export Data
242
+ </button>
243
+ </div>
244
+ <div class="data-table">
245
+ <table class="min-w-full divide-y divide-gray-200">
246
+ <thead class="bg-gray-50">
247
+ <tr>
248
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
249
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
250
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
251
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
252
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
253
+ </tr>
254
+ </thead>
255
+ <tbody class="bg-white divide-y divide-gray-200">
256
+ <tr>
257
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#4567</td>
258
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Smith</td>
259
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td>
260
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$245.00</td>
261
+ <td class="px-6 py-4 whitespace-nowrap">
262
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
263
+ </td>
264
+ </tr>
265
+ <tr>
266
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#4566</td>
267
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td>
268
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td>
269
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$189.50</td>
270
+ <td class="px-6 py-4 whitespace-nowrap">
271
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
272
+ </td>
273
+ </tr>
274
+ <tr>
275
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#4565</td>
276
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Michael Brown</td>
277
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td>
278
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$320.75</td>
279
+ <td class="px-6 py-4 whitespace-nowrap">
280
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
281
+ </td>
282
+ </tr>
283
+ <tr>
284
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#4564</td>
285
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Emily Davis</td>
286
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-13</td>
287
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$175.20</td>
288
+ <td class="px-6 py-4 whitespace-nowrap">
289
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Failed</span>
290
+ </td>
291
+ </tr>
292
+ <tr>
293
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#4563</td>
294
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Robert Wilson</td>
295
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-12</td>
296
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$420.00</td>
297
+ <td class="px-6 py-4 whitespace-nowrap">
298
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
299
+ </td>
300
+ </tr>
301
+ </tbody>
302
+ </table>
303
+ </div>
304
+ </div>
305
+ </div>
306
+
307
+ <!-- Recent Activity -->
308
+ <div class="bg-white rounded-xl shadow-sm p-6">
309
+ <h2 class="text-lg font-semibold text-gray-800 mb-6">Recent Activity</h2>
310
+ <div class="space-y-4">
311
+ <div class="flex items-start">
312
+ <div class="bg-indigo-100 p-2 rounded-full mr-4">
313
+ <i class="fas fa-user-plus text-indigo-600"></i>
314
+ </div>
315
+ <div>
316
+ <p class="text-sm font-medium">New user registered</p>
317
+ <p class="text-xs text-gray-500">Sarah Johnson created an account - 2 hours ago</p>
318
+ </div>
319
+ </div>
320
+ <div class="flex items-start">
321
+ <div class="bg-green-100 p-2 rounded-full mr-4">
322
+ <i class="fas fa-shopping-cart text-green-600"></i>
323
+ </div>
324
+ <div>
325
+ <p class="text-sm font-medium">New order placed</p>
326
+ <p class="text-xs text-gray-500">Order #4578 for $189.50 - 4 hours ago</p>
327
+ </div>
328
+ </div>
329
+ <div class="flex items-start">
330
+ <div class="bg-blue-100 p-2 rounded-full mr-4">
331
+ <i class="fas fa-chart-line text-blue-600"></i>
332
+ </div>
333
+ <div>
334
+ <p class="text-sm font-medium">Monthly report generated</p>
335
+ <p class="text-xs text-gray-500">May 2023 revenue report - 1 day ago</p>
336
+ </div>
337
+ </div>
338
+ <div class="flex items-start">
339
+ <div class="bg-purple-100 p-2 rounded-full mr-4">
340
+ <i class="fas fa-bug text-purple-600"></i>
341
+ </div>
342
+ <div>
343
+ <p class="text-sm font-medium">Bug fixed</p>
344
+ <p class="text-xs text-gray-500">Resolved dashboard loading issue - 2 days ago</p>
345
+ </div>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ </main>
350
+ </div>
351
+ </div>
352
+
353
+ <script>
354
+ // Toggle sidebar
355
+ document.getElementById('toggleSidebar').addEventListener('click', function() {
356
+ document.querySelector('.sidebar').classList.toggle('collapsed');
357
+ document.querySelector('.main-content').classList.toggle('lg:ml-64');
358
+ });
359
+
360
+ // Revenue Chart
361
+ const revenueCtx = document.getElementById('revenueChart').getContext('2d');
362
+ const revenueChart = new Chart(revenueCtx, {
363
+ type: 'line',
364
+ data: {
365
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
366
+ datasets: [{
367
+ label: 'Revenue',
368
+ data: [12500, 19000, 17000, 22000, 25000, 28000, 30000],
369
+ backgroundColor: 'rgba(79, 70, 229, 0.05)',
370
+ borderColor: 'rgba(79, 70, 229, 1)',
371
+ borderWidth: 2,
372
+ tension: 0.3,
373
+ fill: true
374
+ }]
375
+ },
376
+ options: {
377
+ responsive: true,
378
+ maintainAspectRatio: false,
379
+ plugins: {
380
+ legend: {
381
+ display: false
382
+ }
383
+ },
384
+ scales: {
385
+ y: {
386
+ beginAtZero: true,
387
+ grid: {
388
+ drawBorder: false
389
+ }
390
+ },
391
+ x: {
392
+ grid: {
393
+ display: false
394
+ }
395
+ }
396
+ }
397
+ }
398
+ });
399
+
400
+ // Acquisition Chart
401
+ const acquisitionCtx = document.getElementById('acquisitionChart').getContext('2d');
402
+ const acquisitionChart = new Chart(acquisitionCtx, {
403
+ type: 'bar',
404
+ data: {
405
+ labels: ['Direct', 'Organic', 'Referral', 'Social', 'Email'],
406
+ datasets: [{
407
+ label: 'Users',
408
+ data: [1200, 1900, 800, 1500, 700],
409
+ backgroundColor: [
410
+ 'rgba(79, 70, 229, 0.8)',
411
+ 'rgba(16, 185, 129, 0.8)',
412
+ 'rgba(245, 158, 11, 0.8)',
413
+ 'rgba(139, 92, 246, 0.8)',
414
+ 'rgba(59, 130, 246, 0.8)'
415
+ ],
416
+ borderColor: [
417
+ 'rgba(79, 70, 229, 1)',
418
+ 'rgba(16, 185, 129, 1)',
419
+ 'rgba(245, 158, 11, 1)',
420
+ 'rgba(139, 92, 246, 1)',
421
+ 'rgba(59, 130, 246, 1)'
422
+ ],
423
+ borderWidth: 1
424
+ }]
425
+ },
426
+ options: {
427
+ responsive: true,
428
+ maintainAspectRatio: false,
429
+ plugins: {
430
+ legend: {
431
+ display: false
432
+ }
433
+ },
434
+ scales: {
435
+ y: {
436
+ beginAtZero: true,
437
+ grid: {
438
+ drawBorder: false
439
+ }
440
+ },
441
+ x: {
442
+ grid: {
443
+ display: false
444
+ }
445
+ }
446
+ }
447
+ }
448
+ });
449
+
450
+ // Traffic Chart
451
+ const trafficCtx = document.getElementById('trafficChart').getContext('2d');
452
+ const trafficChart = new Chart(trafficCtx, {
453
+ type: 'doughnut',
454
+ data: {
455
+ labels: ['Direct', 'Organic', 'Referral', 'Social'],
456
+ datasets: [{
457
+ data: [35, 30, 20, 15],
458
+ backgroundColor: [
459
+ 'rgba(79, 70, 229, 0.8)',
460
+ 'rgba(16, 185, 129, 0.8)',
461
+ 'rgba(245, 158, 11, 0.8)',
462
+ 'rgba(139, 92, 246, 0.8)'
463
+ ],
464
+ borderColor: [
465
+ 'rgba(79, 70, 229, 1)',
466
+ 'rgba(16, 185, 129, 1)',
467
+ 'rgba(245, 158, 11, 1)',
468
+ 'rgba(139, 92, 246, 1)'
469
+ ],
470
+ borderWidth: 1
471
+ }]
472
+ },
473
+ options: {
474
+ responsive: true,
475
+ maintainAspectRatio: false,
476
+ plugins: {
477
+ legend: {
478
+ position: 'right',
479
+ }
480
+ },
481
+ cutout: '70%'
482
+ }
483
+ });
484
+ </script>
485
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=tidy/data" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
486
+ </html>