⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
cms.dev-unit.com
/
assets
/
js
/
View File Name :
chart-init.js
'use strict'; const chartOne = document.getElementById('incomeChart').getContext('2d'); const myIncomeChart = new Chart(chartOne, { type: 'line', data: { labels: monthArr, datasets: [{ label: 'Monthly Income', data: incomeArr, 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 } } } }); const chartTwo = document.getElementById('enrolmentChart').getContext('2d'); const myEnrolmentChart = new Chart(chartTwo, { type: 'line', data: { labels: monthArr, datasets: [{ label: 'Monthly Enrolments', data: enrolmentArr, 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 } }] } } });