2020-06-09 15:44:20 +02:00
|
|
|
/* globals Chart:false, feather:false */
|
|
|
|
|
2022-04-12 17:07:25 +02:00
|
|
|
(() => {
|
2020-06-09 15:44:20 +02:00
|
|
|
'use strict'
|
|
|
|
|
2021-05-18 07:47:09 +02:00
|
|
|
feather.replace({ 'aria-hidden': 'true' })
|
2020-06-09 15:44:20 +02:00
|
|
|
|
|
|
|
// Graphs
|
2022-04-12 17:07:25 +02:00
|
|
|
const ctx = document.getElementById('myChart')
|
2020-06-09 15:44:20 +02:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
2022-04-12 17:07:25 +02:00
|
|
|
const myChart = new Chart(ctx, {
|
2020-06-09 15:44:20 +02:00
|
|
|
type: 'line',
|
|
|
|
data: {
|
|
|
|
labels: [
|
|
|
|
'الأحد',
|
|
|
|
'الإثنين',
|
|
|
|
'الثلاثاء',
|
|
|
|
'الأربعاء',
|
|
|
|
'الخميس',
|
2021-04-27 14:38:44 +02:00
|
|
|
'الجمعة',
|
|
|
|
'السبت'
|
2020-06-09 15:44:20 +02:00
|
|
|
],
|
|
|
|
datasets: [{
|
|
|
|
data: [
|
|
|
|
15339,
|
|
|
|
21345,
|
|
|
|
18483,
|
|
|
|
24003,
|
|
|
|
23489,
|
|
|
|
24092,
|
|
|
|
12034
|
|
|
|
],
|
|
|
|
lineTension: 0,
|
|
|
|
backgroundColor: 'transparent',
|
|
|
|
borderColor: '#007bff',
|
|
|
|
borderWidth: 4,
|
|
|
|
pointBackgroundColor: '#007bff'
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
options: {
|
2023-02-19 09:34:15 +01:00
|
|
|
plugins: {
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
boxPadding: 3
|
|
|
|
}
|
2020-06-09 15:44:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})()
|