1// v3.0+
2new Chart(ctx, {
3 type: 'line',
4 data: data,
5 options: {
6 scales: {
7 y: {
8 min: 0
9 }
10 }
11 }
12}
13
14// v2.0
15new Chart(ctx, {
16 type: 'line',
17 data: data,
18 options: {
19 scales: {
20 yAxes: [{
21 ticks: {
22 beginAtZero: true
23 }
24 }]
25 }
26 }
27})
28