Server IP : 150.95.80.236 / Your IP : 18.191.33.136 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/pages/projects/list/ |
Upload File : |
"use strict"; // Class definition var KTProjectList = function () { var initChart = function () { // init chart var element = document.getElementById("kt_project_list_chart"); if (!element) { return; } var config = { type: 'doughnut', data: { datasets: [{ data: [30, 45, 25], backgroundColor: ['#00A3FF', '#50CD89', '#E4E6EF'] }], labels: ['Active', 'Completed', 'Yet to start'] }, options: { chart: { fontFamily: 'inherit' }, cutout: '75%', cutoutPercentage: 65, responsive: true, maintainAspectRatio: false, title: { display: false }, animation: { animateScale: true, animateRotate: true }, tooltips: { enabled: true, intersect: false, mode: 'nearest', bodySpacing: 5, yPadding: 10, xPadding: 10, caretPadding: 0, displayColors: false, backgroundColor: '#20D489', titleFontColor: '#ffffff', cornerRadius: 4, footerSpacing: 0, titleSpacing: 0 }, plugins: { legend: { display: false } } } }; var ctx = element.getContext('2d'); var myDoughnut = new Chart(ctx, config); } // Public methods return { init: function () { initChart(); } } }(); // On document ready KTUtil.onDOMContentLoaded(function() { KTProjectList.init(); });