Spaces:
Running
Running
create a very cool and modern visualization of this data data which has 309 responses:
c048382 verified Download index.html from ThatsBryce/test-2: direct link, hf CLI and curl.
- Browser
- Download file 16.5 kB
-
https://huggingface.co/spaces/ThatsBryce/test-2/resolve/main/index.html
- Command line
-
hf download hf://spaces/ThatsBryce/test-2/index.html
-
curl -L -o index.html https://huggingface.co/spaces/ThatsBryce/test-2/resolve/main/index.html
16.5 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Training Feedback Visualization</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> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .word-cloud { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 20px; | |
| } | |
| .word-cloud span { | |
| display: inline-block; | |
| padding: 4px 12px; | |
| border-radius: 20px; | |
| transition: all 0.3s ease; | |
| } | |
| .word-cloud span:hover { | |
| transform: scale(1.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Navigation --> | |
| <nav class="gradient-bg text-white shadow-lg"> | |
| <div class="container mx-auto px-6 py-4"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center space-x-4"> | |
| <i data-feather="bar-chart-2" class="w-8 h-8"></i> | |
| <span class="text-xl font-bold">Training Insights</span> | |
| </div> | |
| <div class="hidden md:flex space-x-8"> | |
| <a href="#" class="hover:text-gray-200">Dashboard</a> | |
| <a href="#" class="hover:text-gray-200">Analysis</a> | |
| <a href="#" class="hover:text-gray-200">Feedback</a> | |
| </div> | |
| <button class="md:hidden focus:outline-none"> | |
| <i data-feather="menu" class="w-6 h-6"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <header class="gradient-bg text-white py-20"> | |
| <div class="container mx-auto px-6 text-center"> | |
| <h1 class="text-4xl md:text-6xl font-bold mb-6" data-aos="fade-down">Training Feedback Analytics</h1> | |
| <p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto" data-aos="fade-down" data-aos-delay="100"> | |
| Visual insights from 309 training feedback responses | |
| </p> | |
| <div class="flex justify-center space-x-4" data-aos="fade-up" data-aos-delay="200"> | |
| <button class="bg-white text-indigo-700 font-semibold px-6 py-3 rounded-lg hover:bg-gray-100 transition duration-300"> | |
| Explore Data | |
| </button> | |
| <button class="border-2 border-white text-white font-semibold px-6 py-3 rounded-lg hover:bg-white hover:text-indigo-700 transition duration-300"> | |
| View Reports | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-6 py-12"> | |
| <!-- Summary Cards --> | |
| <section class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12"> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300" data-aos="fade-up"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Total Responses</p> | |
| <h3 class="text-3xl font-bold text-indigo-700">309</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-indigo-100 text-indigo-700"> | |
| <i data-feather="users" class="w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Avg. Relevance</p> | |
| <h3 class="text-3xl font-bold text-purple-700">4.6/5</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-700"> | |
| <i data-feather="check-circle" class="w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Avg. Rating</p> | |
| <h3 class="text-3xl font-bold text-blue-700">4.5/5</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-700"> | |
| <i data-feather="star" class="w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Top Feature</p> | |
| <h3 class="text-3xl font-bold text-green-700">Interactive</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-green-100 text-green-700"> | |
| <i data-feather="activity" class="w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Relevance Distribution --> | |
| <section class="mb-12" data-aos="fade-up"> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-gray-800">Relevance Distribution</h2> | |
| <div class="h-80"> | |
| <canvas id="relevanceChart"></canvas> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Rating Distribution --> | |
| <section class="mb-12" data-aos="fade-up"> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-gray-800">Rating Distribution</h2> | |
| <div class="h-80"> | |
| <canvas id="ratingChart"></canvas> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Word Cloud --> | |
| <section class="mb-12" data-aos="fade-up"> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-gray-800">Most Mentioned Features</h2> | |
| <div class="word-cloud"> | |
| <span class="bg-indigo-100 text-indigo-800 text-lg">Interactive activities</span> | |
| <span class="bg-purple-100 text-purple-800 text-2xl">Presenter's expertise</span> | |
| <span class="bg-blue-100 text-blue-800 text-xl">Q&A session</span> | |
| <span class="bg-green-100 text-green-800 text-lg">Practical examples</span> | |
| <span class="bg-yellow-100 text-yellow-800 text-xl">Handouts/Materials</span> | |
| <span class="bg-red-100 text-red-800 text-lg">Leadership</span> | |
| <span class="bg-indigo-100 text-indigo-800 text-xl">Innovation</span> | |
| <span class="bg-purple-100 text-purple-800 text-lg">Work-life balance</span> | |
| <span class="bg-blue-100 text-blue-800 text-2xl">Customer service</span> | |
| <span class="bg-green-100 text-green-800 text-lg">Staff welfare</span> | |
| <span class="bg-yellow-100 text-yellow-800 text-xl">Professionalism</span> | |
| <span class="bg-red-100 text-red-800 text-lg">Core values</span> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Feature Popularity --> | |
| <section class="mb-12" data-aos="fade-up"> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-gray-800">Feature Popularity</h2> | |
| <div class="h-80"> | |
| <canvas id="featureChart"></canvas> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Feedback Highlights --> | |
| <section class="mb-12" data-aos="fade-up"> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-gray-800">Feedback Highlights</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="border-l-4 border-indigo-500 pl-4"> | |
| <blockquote class="text-gray-700 italic mb-2"> | |
| "Session was very interactive and transformative. The facilitator was good and she was able to carry everyone along the training." | |
| </blockquote> | |
| <p class="text-gray-500">- Hilda Agyapong</p> | |
| </div> | |
| <div class="border-l-4 border-purple-500 pl-4"> | |
| <blockquote class="text-gray-700 italic mb-2"> | |
| "Very interactive and worth participating. We should always live the values of the bank." | |
| </blockquote> | |
| <p class="text-gray-500">- Kwabena Osei-Oware</p> | |
| </div> | |
| <div class="border-l-4 border-blue-500 pl-4"> | |
| <blockquote class="text-gray-700 italic mb-2"> | |
| "Training was perfect. Awesome session and looking forward to another." | |
| </blockquote> | |
| <p class="text-gray-500">- Alvin Larmie</p> | |
| </div> | |
| <div class="border-l-4 border-green-500 pl-4"> | |
| <blockquote class="text-gray-700 italic mb-2"> | |
| "The sessions have been insightful. I suggest adding more interactive activities, real-life case studies, and practical examples." | |
| </blockquote> | |
| <p class="text-gray-500">- Anonymous</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="gradient-bg text-white py-8"> | |
| <div class="container mx-auto px-6"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-4 md:mb-0"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="bar-chart-2" class="w-6 h-6"></i> | |
| <span class="text-lg font-bold">Training Insights</span> | |
| </div> | |
| <p class="mt-2 text-gray-300">Visualizing feedback for better training experiences</p> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="hover:text-gray-300"><i data-feather="twitter"></i></a> | |
| <a href="#" class="hover:text-gray-300"><i data-feather="linkedin"></i></a> | |
| <a href="#" class="hover:text-gray-300"><i data-feather="github"></i></a> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-300"> | |
| <p>© 2023 Training Feedback Analytics. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Initialize AOS | |
| AOS.init({ | |
| duration: 800, | |
| easing: 'ease-in-out', | |
| once: true | |
| }); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Relevance Chart | |
| const relevanceCtx = document.getElementById('relevanceChart').getContext('2d'); | |
| const relevanceChart = new Chart(relevanceCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Extremely relevant', 'Very relevant', 'Moderately relevant', 'Slightly relevant'], | |
| datasets: [{ | |
| data: [175, 105, 25, 4], | |
| backgroundColor: [ | |
| '#4f46e5', | |
| '#7c3aed', | |
| '#a78bfa', | |
| '#ddd6fe' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'right', | |
| }, | |
| tooltip: { | |
| callbacks: { | |
| label: function(context) { | |
| const label = context.label || ''; | |
| const value = context.raw || 0; | |
| const total = context.dataset.data.reduce((a, b) => a + b, 0); | |
| const percentage = Math.round((value / total) * 100); | |
| return `${label}: ${value} (${percentage}%)`; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Rating Chart | |
| const ratingCtx = document.getElementById('ratingChart').getContext('2d'); | |
| const ratingChart = new Chart(ratingCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['1', '2', '3', '4', '5'], | |
| datasets: [{ | |
| label: 'Number of Ratings', | |
| data: [2, 0, 15, 65, 227], | |
| backgroundColor: [ | |
| '#4f46e5', | |
| '#7c3aed', | |
| '#8b5cf6', | |
| '#a78bfa', | |
| '#c4b5fd' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| ticks: { | |
| stepSize: 50 | |
| } | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| display: false | |
| }, | |
| tooltip: { | |
| callbacks: { | |
| label: function(context) { | |
| return `${context.dataset.label}: ${context.raw}`; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Feature Chart | |
| const featureCtx = document.getElementById('featureChart').getContext('2d'); | |
| const featureChart = new Chart(featureCtx, { | |
| type: 'radar', | |
| data: { | |
| labels: ['Interactive', 'Presenter', 'Q&A', 'Examples', 'Handouts'], | |
| datasets: [{ | |
| label: 'Feature Mentions', | |
| data: [245, 178, 125, 210, 75], | |
| backgroundColor: 'rgba(79, 70, 229, 0.2)', | |
| borderColor: 'rgba(79, 70, 229, 1)', | |
| pointBackgroundColor: 'rgba(79, 70, 229, 1)', | |
| pointBorderColor: '#fff', | |
| pointHoverBackgroundColor: '#fff', | |
| pointHoverBorderColor: 'rgba(79, 70, 229, 1)', | |
| borderWidth: 2 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| r: { | |
| angleLines: { | |
| display: true | |
| }, | |
| suggestedMin: 0, | |
| suggestedMax: 250 | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| } | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> | |