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) + ")"; },