xxxxxxxxxx
1
<canvas id="line-chart"></canvas>
1
1
xxxxxxxxxx
1
// Chart
2
const options = { options: {
3
responsive: true,
4
scales: {
5
y: {
6
beginAtZero: true,
7
max: 100
8
}
9
}
10
}
11
}
12
13
const instance = new mdb.Chart(document.getElementById('line-chart'), {
14
type: 'line',
15
data: {
16
labels: ["January", "February", "March", "April"],
17
datasets: [{
18
label: "Title on top",
19
data: [10, 80, 56, 60],
20
fill: false,
21
backgroundColor: "#eebcde",
22
borderColor: "#eebcde",
23
borderCapStyle: 'butt',
24
borderDash: [5, 5],
25
}]
26
}},
27
options);
28
29
Console errors: 0