2020-06-09 15:44:20 +02:00
|
|
|
/* globals Chart:false, feather:false */
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
'use strict'
|
|
|
|
|
|
|
|
feather.replace()
|
|
|
|
|
|
|
|
// Graphs
|
|
|
|
var ctx = document.getElementById('myChart')
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
var myChart = new Chart(ctx, {
|
|
|
|
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: {
|
|
|
|
scales: {
|
|
|
|
yAxes: [{
|
|
|
|
ticks: {
|
|
|
|
beginAtZero: false
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})()
|