mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Provide a blank default global layout option (#4319)
This commit is contained in:
parent
8eee12486d
commit
fd49ac9200
@ -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 = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user