-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
53 lines (47 loc) · 1021 Bytes
/
script.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
const ctx = document.getElementById('myChart');
Chart.defaults.color = 'black';
Chart.defaults.font.size = 12;
new Chart(ctx, {
type: 'bar',
data: {
labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
datasets: [{
data: [14, 19, 9, 5, 13, 6, 8],
borderWidth: 1.4,
barPercentage: '0.8',
backgroundColor: 'rgb(64, 165, 224, 0.6)',
borderColor: 'rgb(64, 165, 224)',
color: 'black',
label: 'hello',
}],
},
options: {
scales: {
y: {
grid: {
display: false,
},
border: {
display: false,
},
display: false
},
x: {
grid: {
display: false,
},
border: {
display: false,
}
},
},
plugins: {
tooltip: {
enabled: false,
},
legend: false,
},
responsive: true,
maintainAspectRatio: false,
}
});