You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
978 B
54 lines
978 B
3 years ago
|
/* globals Chart:false, feather:false */
|
||
|
|
||
|
(function () {
|
||
|
'use strict'
|
||
|
|
||
|
feather.replace({ 'aria-hidden': 'true' })
|
||
|
|
||
|
// Graphs
|
||
|
var ctx = document.getElementById('myChart')
|
||
|
// eslint-disable-next-line no-unused-vars
|
||
|
var myChart = new Chart(ctx, {
|
||
|
type: 'line',
|
||
|
data: {
|
||
|
labels: [
|
||
|
'Sunday',
|
||
|
'Monday',
|
||
|
'Tuesday',
|
||
|
'Wednesday',
|
||
|
'Thursday',
|
||
|
'Friday',
|
||
|
'Saturday'
|
||
|
],
|
||
|
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
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
})()
|