-
Notifications
You must be signed in to change notification settings - Fork 0
/
charts-js.js
49 lines (47 loc) · 976 Bytes
/
charts-js.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
const charts = () => {
const month = [
[1, 2, 3],
[3, 4, 5],
];
const data = {
labels: ["Jan", "Feb", "Mar"],
datasets: [
{
label: "Fully Rounded",
data: month[0],
borderColor: "#1111ffff",
backgroundColor: "rgb(1,1,255,0.5)",
borderWidth: 2,
borderRadius: 200,
borderSkipped: false,
},
{
label: "Small Radius",
data: month[1],
borderColor: "rgb(255,1,128)",
backgroundColor: "rgb(128,128,128,0.5)",
borderWidth: 2,
borderRadius: 5,
borderSkipped: false,
},
],
};
const config = {
type: "bar",
options: {
responsive: true,
plugins: {
legend: {
position: "top",
},
title: {
display: true,
text: "Chart.js Bar Chart",
},
animation: false,
responsiveAnimationDuration: 0,
},
},
};
};
const test = "";