-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.js
46 lines (46 loc) · 1003 Bytes
/
profile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$(function() {
'use strict'
/** AREA CHART **/
var ctx = document.getElementById('chartArea').getContext('2d');
var gradient = ctx.createLinearGradient(0, 240, 0, 0);
gradient.addColorStop(0, 'rgba(0,123,255,0)');
gradient.addColorStop(1, 'rgba(0,123,255,.3)');
new Chart(ctx, {
type: 'line',
data: {
labels: ['Oct 1', 'Oct 2', 'Oct 3', 'Oct 4', 'Oct 5', 'Oct 6', 'Oct 7', 'Oct 8', 'Oct 9', 'Oct 10'],
datasets: [{
data: [12, 15, 18, 40, 35, 38, 32, 20, 25],
borderColor: '#007bff',
borderWidth: 1,
backgroundColor: gradient
}]
},
options: {
maintainAspectRatio: false,
legend: {
display: false,
labels: {
display: false
}
},
scales: {
yAxes: [{
display: false,
ticks: {
beginAtZero: true,
fontSize: 10,
max: 80
}
}],
xAxes: [{
ticks: {
beginAtZero: true,
fontSize: 11,
fontFamily: 'Arial'
}
}]
}
}
});
});