File size: 24,840 Bytes
8230ca0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45225f5
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Campus Bike Rental Survey Dashboard</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }
        .filter-card {
            transition: all 0.3s ease;
        }
        .filter-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .data-card {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
            border-radius: 12px;
        }
        .highlight {
            background: linear-gradient(90deg, rgba(56,182,255,0.2) 0%, rgba(56,182,255,0) 100%);
            border-left: 4px solid #38b6ff;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <i data-feather="bicycle" class="text-blue-500 mr-2"></i>
                    <span class="text-xl font-semibold text-gray-900">Campus Bike Insights</span>
                </div>
                <div class="flex items-center space-x-4">
                    <a href="#" class="text-gray-700 hover:text-blue-500 px-3 py-2 rounded-md text-sm font-medium">Dashboard</a>
                    <a href="#" class="text-gray-700 hover:text-blue-500 px-3 py-2 rounded-md text-sm font-medium">Raw Data</a>
                    <a href="#" class="text-gray-700 hover:text-blue-500 px-3 py-2 rounded-md text-sm font-medium">About</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <!-- Header -->
        <div class="mb-8 text-center" data-aos="fade-up">
            <h1 class="text-3xl font-bold text-gray-900 mb-2">Bicycle Rental Survey Dashboard</h1>
            <p class="text-gray-600 max-w-3xl mx-auto">Visual insights from student responses about bicycle usage and rental preferences on campus</p>
        </div>

        <!-- Filters -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-8" data-aos="fade-up">
            <div class="filter-card bg-white p-4 rounded-lg shadow-sm">
                <label class="block text-sm font-medium text-gray-700 mb-2">Filter by Cycling Experience</label>
                <select id="experience-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                    <option value="all">All Responses</option>
                    <option value="yes">Knows how to ride</option>
                    <option value="no">Doesn't know how to ride</option>
                </select>
            </div>
            <div class="filter-card bg-white p-4 rounded-lg shadow-sm">
                <label class="block text-sm font-medium text-gray-700 mb-2">Filter by Current Transport</label>
                <select id="transport-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                    <option value="all">All Transport Modes</option>
                    <option value="Public Transport">Public Transport</option>
                    <option value="Walking">Walking</option>
                </select>
            </div>
            <div class="filter-card bg-white p-4 rounded-lg shadow-sm">
                <label class="block text-sm font-medium text-gray-700 mb-2">Filter by Rental Interest</label>
                <select id="rental-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                    <option value="all">All Responses</option>
                    <option value="Yes">Interested in renting</option>
                    <option value="No">Not interested</option>
                    <option value="Maybe">Undecided</option>
                </select>
            </div>
        </div>

        <!-- Key Metrics -->
        <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8" data-aos="fade-up">
            <div class="data-card p-6">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
                        <i data-feather="users"></i>
                    </div>
                    <div>
                        <p class="text-sm text-gray-500">Total Responses</p>
                        <p class="text-2xl font-bold text-gray-800">15</p>
                    </div>
                </div>
            </div>
            <div class="data-card p-6">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
                        <i data-feather="check-circle"></i>
                    </div>
                    <div>
                        <p class="text-sm text-gray-500">Know How to Ride</p>
                        <p class="text-2xl font-bold text-gray-800">9 (60%)</p>
                    </div>
                </div>
            </div>
            <div class="data-card p-6">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
                        <i data-feather="dollar-sign"></i>
                    </div>
                    <div>
                        <p class="text-sm text-gray-500">Would Rent a Bike</p>
                        <p class="text-2xl font-bold text-gray-800">7 (47%)</p>
                    </div>
                </div>
            </div>
            <div class="data-card p-6">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
                        <i data-feather="alert-triangle"></i>
                    </div>
                    <div>
                        <p class="text-sm text-gray-500">Top Concern</p>
                        <p class="text-2xl font-bold text-gray-800">Safety</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Charts Section -->
        <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
            <!-- Cycling Frequency -->
            <div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-right">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Current Bicycle Usage Frequency</h3>
                <div class="chart-container">
                    <canvas id="frequencyChart"></canvas>
                </div>
            </div>

            <!-- Rental Interest -->
            <div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-left">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Interest in Bike Rental Service</h3>
                <div class="chart-container">
                    <canvas id="rentalChart"></canvas>
                </div>
            </div>

            <!-- Motivation Factors -->
            <div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-right">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Top Motivations for Bike Rental</h3>
                <div class="chart-container">
                    <canvas id="motivationChart"></canvas>
                </div>
            </div>

            <!-- Rental Concerns -->
            <div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-left">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Main Concerns About Bike Rental</h3>
                <div class="chart-container">
                    <canvas id="concernsChart"></canvas>
                </div>
            </div>
        </div>

        <!-- Additional Insights -->
        <div class="mb-8" data-aos="fade-up">
            <div class="bg-white p-6 rounded-lg shadow-sm">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Preferred Rental Plans & Additional Services</h3>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                    <div>
                        <h4 class="font-medium text-gray-700 mb-3">Rental Plan Preferences</h4>
                        <div class="chart-container">
                            <canvas id="plansChart"></canvas>
                        </div>
                    </div>
                    <div>
                        <h4 class="font-medium text-gray-700 mb-3">Requested Additional Services</h4>
                        <div class="space-y-3">
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="text-sm font-medium text-gray-700">Free safety gear</span>
                                    <span class="text-sm font-medium text-gray-700">73%</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 73%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="text-sm font-medium text-gray-700">Cycling lessons</span>
                                    <span class="text-sm font-medium text-gray-700">53%</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 53%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="text-sm font-medium text-gray-700">Maintenance support</span>
                                    <span class="text-sm font-medium text-gray-700">47%</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 47%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="text-sm font-medium text-gray-700">Group cycling events</span>
                                    <span class="text-sm font-medium text-gray-700">33%</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 33%"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Barriers to Cycling -->
        <div class="mb-8" data-aos="fade-up">
            <div class="bg-white p-6 rounded-lg shadow-sm">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Perceived Barriers to Cycling on Campus</h3>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <div class="p-4 rounded-lg highlight">
                        <div class="flex items-center mb-2">
                            <div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center mr-3">
                                <i data-feather="alert-circle" class="text-red-500"></i>
                            </div>
                            <h4 class="font-medium">Lack of bike-friendly infrastructure</h4>
                        </div>
                        <p class="text-gray-600 text-sm">Mentioned by 40% of respondents as the primary barrier to cycling on campus.</p>
                    </div>
                    <div class="p-4 rounded-lg">
                        <div class="flex items-center mb-2">
                            <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                                <i data-feather="user" class="text-purple-500"></i>
                            </div>
                            <h4 class="font-medium">Personal preference for other transport</h4>
                        </div>
                        <p class="text-gray-600 text-sm">33% of respondents prefer other transportation modes over cycling.</p>
                    </div>
                    <div class="p-4 rounded-lg">
                        <div class="flex items-center mb-2">
                            <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center mr-3">
                                <i data-feather="eye-off" class="text-yellow-500"></i>
                            </div>
                            <h4 class="font-medium">Lack of awareness of cycling benefits</h4>
                        </div>
                        <p class="text-gray-600 text-sm">13% believe students aren't sufficiently aware of cycling advantages.</p>
                    </div>
                    <div class="p-4 rounded-lg">
                        <div class="flex items-center mb-2">
                            <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
                                <i data-feather="shield" class="text-blue-500"></i>
                            </div>
                            <h4 class="font-medium">Safety concerns</h4>
                        </div>
                        <p class="text-gray-600 text-sm">7% specifically mentioned safety as their main concern about cycling.</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Raw Data Preview -->
        <div class="mb-8" data-aos="fade-up">
            <div class="bg-white p-6 rounded-lg shadow-sm">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-lg font-medium text-gray-900">Survey Response Preview</h3>
                    <button class="text-sm text-blue-500 hover:text-blue-700 font-medium">View Full Data</button>
                </div>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Experience</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Frequency</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transport</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rental Interest</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Top Motivation</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Main Concern</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Yes</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Daily</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Public Transport</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Yes</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Affordability</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Safety</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">No</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Occasionally</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Public Transport</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Maybe</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Convenience</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Lack of skills</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">No</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Occasionally</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Walking</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Yes</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Affordability</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Cost</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-white border-t border-gray-200">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center mb-4 md:mb-0">
                    <i data-feather="bicycle" class="text-blue-500 mr-2"></i>
                    <span class="text-sm font-medium text-gray-900">Campus Bike Insights</span>
                </div>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <i data-feather="github"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <i data-feather="twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <i data-feather="linkedin"></i>
                    </a>
                </div>
            </div>
            <div class="mt-4 text-center md:text-left">
                <p class="text-xs text-gray-500">&copy; 2023 Campus Bike Insights. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <script>
        // Initialize animations and icons
        AOS.init();
        feather.replace();

        // Chart data
        const frequencyData = {
            labels: ['Daily', 'Occasionally', 'Never'],
            datasets: [{
                data: [1, 10, 4],
                backgroundColor: ['#3B82F6', '#10B981', '#6366F1'],
                borderWidth: 0
            }]
        };

        const rentalData = {
            labels: ['Yes', 'No', 'Maybe'],
            datasets: [{
                data: [7, 4, 4],
                backgroundColor: ['#10B981', '#EF4444', '#F59E0B'],
                borderWidth: 0
            }]
        };

        const motivationData = {
            labels: ['Convenience', 'Affordability', 'Availability', 'Eco-friendly', 'Exercise'],
            datasets: [{
                label: 'Mentions',
                data: [10, 8, 6, 4, 5],
                backgroundColor: '#3B82F6',
                borderWidth: 0,
                borderRadius: 4
            }]
        };

        const concernsData = {
            labels: ['Safety', 'Cost', 'Lack of skills', 'Parking', 'Injury risk'],
            datasets: [{
                label: 'Mentions',
                data: [7, 6, 5, 3, 2],
                backgroundColor: '#EF4444',
                borderWidth: 0,
                borderRadius: 4
            }]
        };

        const plansData = {
            labels: ['Pay-per-ride', 'Daily', 'Weekly', 'Semester'],
            datasets: [{
                data: [5, 4, 2, 3],
                backgroundColor: ['#3B82F6', '#10B981', '#F59E0B', '#6366F1'],
                borderWidth: 0
            }]
        };

        // Create charts
        const frequencyChart = new Chart(
            document.getElementById('frequencyChart'),
            {
                type: 'doughnut',
                data: frequencyData,
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            position: 'right'
                        }
                    }
                }
            }
        );

        const rentalChart = new Chart(
            document.getElementById('rentalChart'),
            {
                type: 'pie',
                data: rentalData,
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            position: 'right'
                        }
                    }
                }
            }
        );

        const motivationChart = new Chart(
            document.getElementById('motivationChart'),
            {
                type: 'bar',
                data: motivationData,
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: true
                        }
                    }
                }
            }
        );

        const concernsChart = new Chart(
            document.getElementById('concernsChart'),
            {
                type: 'bar',
                data: concernsData,
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    indexAxis: 'y',
                    scales: {
                        x: {
                            beginAtZero: true
                        }
                    }
                }
            }
        );

        const plansChart = new Chart(
            document.getElementById('plansChart'),
            {
                type: 'polarArea',
                data: plansData,
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            position: 'right'
                        }
                    }
                }
            }
        );

        // Filter functionality (simplified for demo)
        document.getElementById('experience-filter').addEventListener('change', function() {
            // In a real app, this would filter the data and update charts
            console.log('Filter by experience:', this.value);
        });

        document.getElementById('transport-filter').addEventListener('change', function() {
            console.log('Filter by transport:', this.value);
        });

        document.getElementById('rental-filter').addEventListener('change', function() {
            console.log('Filter by rental interest:', this.value);
        });
    </script>
</body>
</html>