-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
71 lines (66 loc) · 1.93 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
Aurora Website
Copyright (C) Aurora Enterprise. All Rights Reserved.
https://aur.xyz
Licensed by the Aurora Open-Source Licence, which can be found at LICENCE.md.
*/
$(function() {
var gradient = $("#displayChart")[0].getContext("2d").createLinearGradient(0, 0, 0, window.innerHeight / 4);
gradient.addColorStop(0, "rgba(53, 189, 231, 0.9)");
gradient.addColorStop(1, "rgba(142, 207, 112, 0.6)");
var displayChart = new Chart("displayChart", {
type: "line",
data: {
labels: Array(10).fill(0),
datasets: [{
data: Array.from({length: 10}, function() {
return Math.random() + 0.25;
}),
backgroundColor: gradient,
borderColor: "rgba(53, 189, 231, 1)",
borderWidth: 5
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
elements: {
line: {
tension: 0
}
},
legend: {
display: false
},
tooltips: {
enabled: false
},
scales: {
xAxes: [{
ticks: {
display: false
},
gridLines: {
display: false,
drawBorder: false
}
}],
yAxes: [{
ticks: {
beginAtZero: true,
display: false
},
gridLines: {
display: false,
drawBorder: false
}
}]
},
layout: {
padding: {
top: 10
}
}
}
});
});