]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Removed the default padding 2173/head
authorBlake Niemyjski <bniemyjski@gmail.com>
Thu, 24 Mar 2016 19:07:35 +0000 (14:07 -0500)
committerBlake Niemyjski <bniemyjski@gmail.com>
Thu, 24 Mar 2016 19:07:35 +0000 (14:07 -0500)
You should put a style on the container element

src/core/core.layoutService.js

index 67eba3299fad6fce2299aebf2d08abd7aafe0f01..0da922074a680f7ae4f5677a88fc93203cd6bf4e 100644 (file)
@@ -32,8 +32,8 @@ module.exports = function(Chart) {
                                return;
                        }
 
-                       var xPadding = width > 30 ? 5 : 2;
-                       var yPadding = height > 30 ? 5 : 2;
+                       var xPadding = 0;
+                       var yPadding = 0;
 
                        var leftBoxes = helpers.where(chartInstance.boxes, function(box) {
                                return box.options.position === "left";
@@ -320,4 +320,4 @@ module.exports = function(Chart) {
                        });
                }
        };
-};
\ No newline at end of file
+};