Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 46a48ee

Browse files
author
Christian Lehner
committed
bars starting at zero
1 parent 4c509f9 commit 46a48ee

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

samples/absolute.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
data: barChartData,
4949
options: {
5050
responsive: true,
51+
scales: {
52+
yAxes: [{
53+
ticks: {
54+
beginAtZero: true
55+
}
56+
}]
57+
},
5158
legend: {
5259
position: 'top',
5360
},

samples/horizontal-simple.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
data: barChartData,
4949
options: {
5050
responsive: true,
51+
scales: {
52+
yAxes: [{
53+
ticks: {
54+
beginAtZero: true
55+
}
56+
}]
57+
},
5158
legend: {
5259
position: 'top',
5360
},

samples/simple-bar.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
borderColor: '#d95f02',
3030
borderWidth: 1,
3131
data: [
32-
56,
32+
60,
3333
33,
3434
78,
3535
54
3636
],
3737
errorBars: {
38-
'January': {plus: 15, minus: -34},
38+
'January': {plus: 10, minus: -10},
3939
'February': {plus: 15, minus: -3},
4040
'March': {plus: 35, minus: -14},
4141
'April': {plus: 45, minus: -4}
@@ -68,6 +68,13 @@
6868
data: barChartData,
6969
options: {
7070
responsive: true,
71+
scales: {
72+
yAxes: [{
73+
ticks: {
74+
beginAtZero: true
75+
}
76+
}]
77+
},
7178
legend: {
7279
position: 'top',
7380
},

0 commit comments

Comments
 (0)