-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
104 lines (101 loc) · 2.75 KB
/
index.html
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!doctype html>
<html lang="en">
<head>
<title>Chart.js example</title>
</head>
<body>
<div>
<canvas id="myChart"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const ctx = document.getElementById('myChart');
let chart = new Chart(ctx, {
type: 'line',
data: {
datasets: [{
type: 'line',
label: '50q',
parsing: true,
data: [
{ x: '2022-12-15',y: 7512},
{ x: '2022-12-14',y: 7580},
{ x: '2022-12-13',y: 7721},
{ x: '2022-12-12',y: 7721},
{ x: '2022-12-11',y: 7724},
{ x: '2022-12-07',y: 7875},
{ x: '2022-12-06',y: 7875},
{ x: '2022-12-05',y: 7968},
{ x: '2022-12-02',y: 7968},
{ x: '2022-12-01',y: 7968},
{ x: '2022-11-30',y: 7968},
{ x: '2022-11-29',y: 8072},
{ x: '2022-11-28',y: 8164},
{ x: '2022-11-26',y: 8164},
{ x: '2022-11-24',y: 8219},
{ x: '2022-11-24',y: 8323},
{ x: '2022-11-21',y: 8323},
{ x: '2022-11-16', y: 8501 },
{ x: '2022-11-15', y: 8501 },
{ x: '2022-11-14', y: 8517 },
{ x: '2022-11-11', y: 8517 },
{ x: '2022-11-10', y: 8517 },
{ x: '2022-11-10', y: 8689 },
{ x: '2022-11-08', y: 8689 },
{ x: '2022-11-07', y: 8689 },
{ x: '2022-11-03', y: 8689 },
{ x: '2022-11-02', y: 8695 },
{ x: '2022-11-01', y: 8695 },
{ x: '2022-10-30', y: 8723 },
{ x: '2022-10-28', y: 8741 },
{ x: '2022-10-26', y: 8770 },
{ x: '2022-10-25', y: 8794 },
{ x: '2022-10-24', y: 8794 },
{ x: '2022-10-20', y: 8863 },
{ x: '2022-10-19', y: 8878 },
{ x: '2022-10-18', y: 8927 },
{ x: '2022-10-17', y: 8927 },
{ x: '2022-10-17', y: 9003 },
{ x: '2022-10-16', y: 9051 },
{ x: '2022-10-15', y: 9051 },
{ x: '2022-10-13', y: 9058 },
{ x: '2022-10-12', y: 9130 },
{ x: '2022-10-11', y: 9130 },
{ x: '2022-10-10', y: 9130 },
{ x: '2022-10-09', y: 9130 },
{ x: '2022-10-08', y: 9130 },
{ x: '2022-10-06', y: 9130 },
{ x: '2022-10-04', y: 9167 },
{ x: '2022-10-03', y: 9214 },
{ x: '2022-10-02', y: 9214 },
{ x: '2022-10-01', y: 9214 },
{ x: '2022-09-29', y: 9227 },
{ x: '2022-09-28', y: 9332 },
{ x: '2022-09-27', y: 9400 },
{ x: '2022-09-25', y: 9400 },
{ x: '2022-09-23', y: 9400 },
{ x: '2022-09-20', y: 9434 },
{ x: '2022-09-19', y: 9500 },
{ x: '2022-09-15', y: 9500 },
{ x: '2022-09-12', y: 9500 },
{ x: '2022-09-12', y: 9500 },
{ x: '2022-09-10', y: 9500 },
{ x: '2022-09-08', y: 9500 },
{ x: '2022-09-06', y: 9500 }
],
}],
},
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'day'
}
}
}
}
});
</script>
</body>
</html>