From a465b8842a9fb811021a79d5e2572a575b4b8a24 Mon Sep 17 00:00:00 2001 From: JakeSidSmith Date: Thu, 1 May 2014 15:38:00 +0100 Subject: [PATCH] Minus margin bottom --- c3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3.js b/c3.js index 22f2ab6..7e939a3 100644 --- a/c3.js +++ b/c3.js @@ -332,7 +332,7 @@ main : function () { return "translate(" + margin.left + "," + margin.top + ")"; }, context : function () { return "translate(" + margin2.left + "," + margin2.top + ")"; }, legend : function () { return "translate(" + margin3.left + "," + margin3.top + ")"; }, - x : function () { return "translate(0," + (__axis_rotated ? 0 : currentHeight) + ")"; }, + x : function () { return "translate(0," + (__axis_rotated ? 0 : currentHeight - margin.bottom) + ")"; }, y : function () { return "translate(0," + (__axis_rotated ? height : 0) + ")"; }, y2 : function () { return "translate(" + (__axis_rotated ? 0 : width) + "," + (__axis_rotated ? 1 : 0) + ")"; }, subx : function () { return "translate(0," + (__axis_rotated ? 0 : height2) + ")"; },