From: Blake Niemyjski Date: Thu, 24 Mar 2016 19:07:35 +0000 (-0500) Subject: Removed the default padding X-Git-Tag: v2.0.0~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2173%2Fhead;p=thirdparty%2FChart.js.git Removed the default padding You should put a style on the container element --- diff --git a/src/core/core.layoutService.js b/src/core/core.layoutService.js index 67eba3299..0da922074 100644 --- a/src/core/core.layoutService.js +++ b/src/core/core.layoutService.js @@ -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 +};