* Bar chart defaults to begin at zero
* Add bar beginAtZero test
},
y: {
type: 'linear',
+ beginAtZero: true,
}
}
});
--- /dev/null
+module.exports = {
+ config: {
+ type: 'bar',
+ data: {
+ labels: [0, 1, 3, 4],
+ datasets: [
+ {
+ data: [5, 20, 1, 10],
+ backgroundColor: '#00ff00',
+ borderColor: '#ff0000'
+ }
+ ]
+ },
+ options: {
+ legend: false,
+ title: false,
+ scales: {
+ x: {display: false},
+ y: {display: false}
+ }
+ }
+ },
+ options: {
+ canvas: {
+ height: 256,
+ width: 512
+ }
+ }
+};
},
y: {
type: 'linear',
- display: false
+ display: false,
+ beginAtZero: false
}
}
}
},
y: {
type: 'linear',
- display: false
+ display: false,
+ beginAtZero: false
}
}
}
options: {
scales: {
y: {
- type: 'linear'
+ type: 'linear',
+ beginAtZero: false
}
}
}
scales: {
y: {
type: 'linear',
+ beginAtZero: false
}
}
}
},
options: {
scales: {
- y: {}
+ y: {
+ beginAtZero: false
+ }
}
}
});