Provide a blank default global layout option (#4319)

This commit is contained in:
Evert Timberg 2017-06-04 13:32:44 -04:00 committed by Simon Brunel
parent 8eee12486d
commit fd49ac9200

View File

@ -32,6 +32,16 @@ module.exports = function() {
// Element defaults defined in element extensions // Element defaults defined in element extensions
elements: {}, elements: {},
// Layout options such as padding
layout: {
padding: {
top: 0,
right: 0,
bottom: 0,
left: 0
}
},
// Legend callback string // Legend callback string
legendCallback: function(chart) { legendCallback: function(chart) {
var text = []; var text = [];