]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Provide a blank default global layout option (#4319)
authorEvert Timberg <evert.timberg+github@gmail.com>
Sun, 4 Jun 2017 17:32:44 +0000 (13:32 -0400)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 4 Jun 2017 17:32:44 +0000 (19:32 +0200)
src/core/core.js

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