Download evaluations.html from XKWzzt/undefined: direct link, hf CLI and curl.
- Browser
- Download file 29.9 kB
-
https://huggingface.co/spaces/XKWzzt/undefined/resolve/main/evaluations.html
- Command line
-
hf download hf://spaces/XKWzzt/undefined/evaluations.html
-
curl -L -o evaluations.html https://huggingface.co/spaces/XKWzzt/undefined/resolve/main/evaluations.html
29.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>OrbitHRIS | Performance Evaluations</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#6366f1', | |
| secondary: '#8b5cf6', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .nav-item.active { | |
| border-left: 4px solid #6366f1; | |
| background-color: rgba(99, 102, 241, 0.1); | |
| } | |
| .smooth-transition { | |
| transition: all 0.3s ease; | |
| } | |
| .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); | |
| } | |
| .rating-excellent { | |
| background-color: #dcfce7; | |
| color: #166534; | |
| } | |
| .rating-good { | |
| background-color: #dbeafe; | |
| color: #1e40af; | |
| } | |
| .rating-average { | |
| background-color: #fef9c3; | |
| color: #92400e; | |
| } | |
| .rating-poor { | |
| background-color: #fee2e2; | |
| color: #991b1b; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="hidden md:flex md:flex-shrink-0"> | |
| <div class="flex flex-col w-64 bg-white border-r border-gray-200"> | |
| <div class="flex items-center justify-center h-16 px-4 bg-primary-500"> | |
| <div class="flex items-center"> | |
| <i data-feather="globe" class="text-white mr-2"></i> | |
| <span class="text-white font-bold text-xl">OrbitHRIS</span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto"> | |
| <div class="space-y-1"> | |
| <a href="index.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> | |
| <i data-feather="home" class="mr-3 h-5 w-5 text-gray-400"></i> | |
| Dashboard | |
| </a> | |
| <a href="employeemanagement.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> | |
| <i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i> | |
| Employee Management | |
| </a> | |
| <a href="dailyattendance.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> | |
| <i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i> | |
| Attendance | |
| </a> | |
| <a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> | |
| <i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i> | |
| Payroll | |
| </a> | |
| <a href="careermanagement.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> | |
| <i data-feather="bar-chart-2" class="mr-3 h-5 w-5 text-gray-400"></i> | |
| Career Management | |
| </a> | |
| <a href="evaluations.html" class="nav-item active flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-900"> | |
| <i data-feather="clipboard" class="mr-3 h-5 w-5 text-primary-500"></i> | |
| Evaluations | |
| </a> | |
| </div> | |
| <div class="mt-auto mb-4"> | |
| <div class="p-4 bg-gray-100 rounded-lg"> | |
| <h4 class="text-sm font-medium text-gray-900">System Storage</h4> | |
| <div class="mt-2 w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-primary-500 h-2.5 rounded-full" style="width: 65%"></div> | |
| </div> | |
| <p class="mt-1 text-xs text-gray-500">65% of 50GB used</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex flex-col flex-1 overflow-hidden"> | |
| <!-- Top Navigation --> | |
| <div class="flex items-center justify-between h-16 px-4 bg-white border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <button class="md:hidden mr-2 text-gray-500"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| <h1 class="text-lg font-medium text-gray-900">Performance Evaluations</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="p-1 text-gray-500 hover:text-gray-700"> | |
| <i data-feather="bell"></i> | |
| </button> | |
| <div class="relative"> | |
| <button class="flex items-center space-x-2 focus:outline-none"> | |
| <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center"> | |
| <i data-feather="user" class="text-primary-500"></i> | |
| </div> | |
| <span class="hidden md:inline text-sm font-medium">Admin</span> | |
| <i data-feather="chevron-down" class="hidden md:inline h-4 w-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Content --> | |
| <div class="flex-1 overflow-y-auto p-6 bg-gray-50"> | |
| <!-- Evaluation Period Selector --> | |
| <div class="bg-white rounded-lg shadow-sm p-6 mb-6"> | |
| <div class="flex flex-col md:flex-row md:items-center md:space-x-4 space-y-4 md:space-y-0"> | |
| <div class="flex-1"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Evaluation Period</label> | |
| <select id="evaluationPeriod" class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md"> | |
| <option value="monthly">Monthly Evaluation</option> | |
| <option value="annual">Annual Evaluation</option> | |
| <option value="quarterly">Quarterly Evaluation</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Year</label> | |
| <select class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md"> | |
| <option>2023</option> | |
| <option>2022</option> | |
| <option>2021</option> | |
| </select> | |
| </div> | |
| <div id="monthSelector" class=""> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Month</label> | |
| <select class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md"> | |
| <option>January</option> | |
| <option>February</option> | |
| <option>March</option> | |
| <option>April</option> | |
| <option>May</option> | |
| <option>June</option> | |
| <option>July</option> | |
| <option>August</option> | |
| <option>September</option> | |
| <option>October</option> | |
| <option>November</option> | |
| <option>December</option> | |
| </select> | |
| </div> | |
| <div class="md:ml-auto flex items-end"> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-500 hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> | |
| <i data-feather="refresh-cw" class="mr-2 h-4 w-4"></i> | |
| Generate Report | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Performance Overview --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Performance Distribution Chart --> | |
| <div class="lg:col-span-2 bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-medium text-gray-900">Performance Distribution</h2> | |
| <select class="text-sm border-gray-200 rounded-md focus:ring-primary-500 focus:border-primary-500"> | |
| <option>All Departments</option> | |
| <option>Sales</option> | |
| <option>Marketing</option> | |
| <option>Engineering</option> | |
| <option>HR</option> | |
| <option>Finance</option> | |
| </select> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="performanceChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- KPI Completion Rate --> | |
| <div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-medium text-gray-900">KPI Completion Rate</h2> | |
| </div> | |
| <div class="flex items-center justify-center h-48"> | |
| <div class="relative w-40 h-40"> | |
| <canvas id="kpiCompletionChart"></canvas> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <span class="text-2xl font-bold text-gray-900">78%</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-4 text-center"> | |
| <p class="text-sm text-gray-500">Average KPI completion rate across all employees</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Employee Evaluations --> | |
| <div class="bg-white rounded-lg shadow-sm overflow-hidden mb-6"> | |
| <div class="flex items-center justify-between p-6 border-b border-gray-200"> | |
| <h2 class="text-lg font-medium text-gray-900">Employee Evaluations</h2> | |
| <div class="flex space-x-3"> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-500 hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> | |
| <i data-feather="download" class="mr-2 h-4 w-4"></i> | |
| Export | |
| </button> | |
| <button class="inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> | |
| <i data-feather="printer" class="mr-2 h-4 w-4"></i> | |
| </button> | |
| </div> | |
| </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"> | |
| Employee | |
| </th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> | |
| Department | |
| </th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> | |
| KPI Completion | |
| </th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> | |
| Performance Rating | |
| </th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> | |
| Manager Review | |
| </th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider"> | |
| Actions | |
| </th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1" alt=""> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Michael Chen</div> | |
| <div class="text-sm text-gray-500">Sales Manager</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Sales</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 92%"></div> | |
| </div> | |
| <div class="text-xs text-gray-500 mt-1">92% of KPIs completed</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-excellent"> | |
| Excellent | |
| </span> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="text-sm text-gray-900 line-clamp-2">Exceeded all sales targets and contributed significantly to team success.</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-primary-500 hover:text-primary-700 mr-3"> | |
| <i data-feather="eye"></i> | |
| </button> | |
| <button class="text-yellow-500 hover:text-yellow-700 mr-3"> | |
| <i data-feather="edit"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i data-feather="more-vertical"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/2" alt=""> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Jessica Williams</div> | |
| <div class="text-sm text-gray-500">Marketing Director</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Marketing</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-blue-500 h-2.5 rounded-full" style="width: 85%"></div> | |
| </div> | |
| <div class="text-xs text-gray-500 mt-1">85% of KPIs completed</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-good"> | |
| Good | |
| </span> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="text-sm text-gray-900 line-clamp-2">Met most objectives and showed strong leadership in campaigns.</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-primary-500 hover:text-primary-700 mr-3"> | |
| <i data-feather="eye"></i> | |
| </button> | |
| <button class="text-yellow-500 hover:text-yellow-700 mr-3"> | |
| <i data-feather="edit"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i data-feather="more-vertical"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/3" alt=""> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">David Kim</div> | |
| <div class="text-sm text-gray-500">Senior Developer</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Engineering</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-yellow-500 h-2.5 rounded-full" style="width: 70%"></div> | |
| </div> | |
| <div class="text-xs text-gray-500 mt-1">70% of KPIs completed</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-average"> | |
| Average | |
| </span> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="text-sm text-gray-900 line-clamp-2">Technical skills are excellent but needs improvement in meeting deadlines.</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-primary-500 hover:text-primary-700 mr-3"> | |
| <i data-feather="eye"></i> | |
| </button> | |
| <button class="text-yellow-500 hover:text-yellow-700 mr-3"> | |
| <i data-feather="edit"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i data-feather="more-vertical"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/4" alt=""> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Emma Rodriguez</div> | |
| <div class="text-sm text-gray-500">HR Manager</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">HR</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-red-500 h-2.5 rounded-full" style="width: 55%"></div> | |
| </div> | |
| <div class="text-xs text-gray-500 mt-1">55% of KPIs completed</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-poor"> | |
| Needs Improvement | |
| </span> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="text-sm text-gray-900 line-clamp-2">Struggled with new HR software implementation, affecting performance metrics.</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-primary-500 hover:text-primary-700 mr-3"> | |
| <i data="eye"></i> | |
| </button> | |
| <button class="text-yellow-500 hover:text-yellow-700 mr-3"> | |
| <i data="edit"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i data="more-vertical"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <!-- Pagination --> | |
| <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6"> | |
| <div class="flex-1 flex justify-between sm:hidden"> | |
| <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> | |
| Previous | |
| </a> | |
| <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> | |
| Next | |
| </a> | |
| </div> | |
| <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"> | |
| <div> | |
| <p class="text-sm text-gray-700"> | |
| Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">1248</span> results | |
| </p> | |
| </div> | |
| <div> | |
| <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination"> | |
| <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> | |
| <span class="sr-only">Previous</span> | |
| <i data-feather="chevron-left" class="h-5 w-5"></i> | |
| </a> | |
| <a href="#" aria-current="page" class="z-10 bg-primary-50 border-primary-500 text-primary-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> | |
| 1 | |
| </a> | |
| <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> | |
| 2 | |
| </a> | |
| <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> | |
| 3 | |
| </a> | |
| <span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700"> | |
| ... | |
| </span> | |
| <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> | |
| 8 | |
| </a> | |
| <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> | |
| <span class="sr-only">Next</span> | |
| <i data-feather="chevron-right" class="h-5 w-5"></i> | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Evaluation Summary --> | |
| <div class="bg-white rounded-lg shadow-sm p-6"> | |
| <h2 class="text-lg font-medium text-gray-900 mb-4">Evaluation Summary</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="bg-gray-50 p-6 rounded-md"> | |
| <h3 class="text-md font-medium text-gray-900 mb-3">Performance Rating Distribution</h3> | |
| <div class="h-64"> | |
| <canvas id="ratingDistributionChart"></canvas> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-md"> | |
| <h3 class="text-md font-medium text-gray-900 mb-3">Department Comparison</h3> | |
| <div class="h-64"> | |
| <canvas id="departmentComparisonChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| // Toggle month selector based on evaluation period | |
| document.getElementById('evaluationPeriod').addEventListener('change', function() { | |
| const monthSelector = document.getElementById('monthSelector'); | |
| if (this.value === 'monthly') { | |
| monthSelector.classList.remove('hidden'); | |
| } else { | |
| monthSelector.classList.add('hidden'); | |
| } | |
| }); | |
| // Performance Distribution Chart | |
| const performanceCtx = document.getElementById('performanceChart').getContext('2d'); | |
| const performanceChart = new Chart(performanceCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], | |
| datasets: [{ | |
| label: 'Average Performance Score', | |
| data: [78, 82, 85, 80, 83, 86, 84, 87, 85, 88, 90, 92], | |
| backgroundColor: '#6366f1', | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: false, | |
| min: 70, | |
| max: 100 | |
| } | |
| } | |
| } | |
| }); | |
| // KPI Completion Chart | |
| const kpiCompletionCtx = document.getElementById('kpiCompletionChart').getContext('2d'); | |
| const kpiCompletionChart = new Chart(kpiCompletionCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Completed', 'Pending'], | |
| datasets: [{ | |
| data: [78, 22], | |
| backgroundColor: ['#10b981', '#e5e7eb'], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| cutout: '70%', | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| } | |
| } | |
| }); | |
| // Rating Distribution Chart | |
| const ratingDistributionCtx = document.getElementById('ratingDistributionChart').getContext('2d'); | |
| const ratingDistributionChart = new Chart(ratingDistributionCtx, { | |
| type: 'pie', | |
| data: { | |
| labels: ['Excellent', 'Good', 'Average', 'Needs Improvement'], | |
| datasets: [{ | |
| data: [25, 45, 20, 10], | |
| backgroundColor: ['#166534', '#1e40af', '#92400e', '#991b1b'], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| position: 'right', | |
| } | |
| } | |
| } | |
| }); | |
| // Department Comparison Chart | |
| const departmentComparisonCtx = document.getElementById('departmentComparisonChart').getContext('2d'); | |
| const departmentComparisonChart = new Chart(departmentComparisonCtx, { | |
| type: 'radar', | |
| data: { | |
| labels: ['Sales', 'Marketing', 'Engineering', 'HR', 'Finance'], | |
| datasets: [ | |
| { | |
| label: 'KPI Completion', | |
| data: [92, 85, 70, 55, 80], | |
| backgroundColor: 'rgba(99, 102, 241, 0.2)', | |
| borderColor: '#6366f1', | |
| borderWidth: 2 | |
| }, | |
| { | |
| label: 'Performance Rating', | |
| data: [88, 82, 75, 65, 78], | |
| backgroundColor: 'rgba(139, 92, 246, 0.2)', | |
| borderColor: '#8b5cf6', | |
| borderWidth: 2 | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| scales: { | |
| r: { | |
| angleLines: { | |
| display: true | |
| }, | |
| suggestedMin: 50, | |
| suggestedMax: 100 | |
| } | |
| } | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |