One Hat Cyber Team
Your IP :
3.143.244.33
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
bizcento.com
/
public
/
assets
/
js
/
View File Name :
my-chart.js
'use strict'; if ($('#monthlySubscriptionChart').length > 0) { const chartOne = document.getElementById('monthlySubscriptionChart').getContext('2d'); const monthlySubscriptionChart = new Chart(chartOne, { type: 'line', data: { labels: monthArr, datasets: [{ label: 'Monthly Subscriptions', data: subscriptionArr, borderColor: '#1d7af3', pointBorderColor: '#FFF', pointBackgroundColor: '#1d7af3', pointBorderWidth: 2, pointHoverRadius: 4, pointHoverBorderWidth: 1, pointRadius: 4, backgroundColor: 'transparent', fill: true, borderWidth: 2 }] }, options: { responsive: true, maintainAspectRatio: false, legend: { position: 'bottom', labels: { padding: 10, fontColor: '#1d7af3' } }, tooltips: { bodySpacing: 4, mode: 'nearest', intersect: 0, position: 'nearest', xPadding: 10, yPadding: 10, caretPadding: 10 }, layout: { padding: { left: 15, right: 15, top: 15, bottom: 15 } }, scales: { yAxes: [{ ticks: { stepSize: 1 } }] } } }); } if ($('#serviceOrderChart').length > 0) { const chartOne = document.getElementById('serviceOrderChart').getContext('2d'); const serviceOrderChart = new Chart(chartOne, { type: 'line', data: { labels: monthArr, datasets: [{ label: 'Monthly Service Orders', data: serviceOrderArr, borderColor: '#1d7af3', pointBorderColor: '#FFF', pointBackgroundColor: '#1d7af3', pointBorderWidth: 2, pointHoverRadius: 4, pointHoverBorderWidth: 1, pointRadius: 4, backgroundColor: 'transparent', fill: true, borderWidth: 2 }] }, options: { responsive: true, maintainAspectRatio: false, legend: { position: 'bottom', labels: { padding: 10, fontColor: '#1d7af3' } }, tooltips: { bodySpacing: 4, mode: 'nearest', intersect: 0, position: 'nearest', xPadding: 10, yPadding: 10, caretPadding: 10 }, layout: { padding: { left: 15, right: 15, top: 15, bottom: 15 } }, scales: { yAxes: [{ ticks: { stepSize: 1 } }] } } }); } if ($('#serviceIncomeChart').length > 0) { const chartThree = document.getElementById('serviceIncomeChart').getContext('2d'); const serviceIncomeChart = new Chart(chartThree, { type: 'line', data: { labels: monthArr, datasets: [{ label: 'Month Wise Total Incomes', data: serviceIncomeArr, borderColor: '#01a100', pointBorderColor: '#FFF', pointBackgroundColor: '#01a100', pointBorderWidth: 2, pointHoverRadius: 4, pointHoverBorderWidth: 1, pointRadius: 4, backgroundColor: 'transparent', fill: true, borderWidth: 2 }] }, options: { responsive: true, maintainAspectRatio: false, legend: { position: 'bottom', labels: { padding: 10, fontColor: '#01a100' } }, tooltips: { bodySpacing: 4, mode: 'nearest', intersect: 0, position: 'nearest', xPadding: 10, yPadding: 10, caretPadding: 10 }, layout: { padding: { left: 15, right: 15, top: 15, bottom: 15 } } } }); }