From a5f1e56b5171f3e09d1a2449725b684cbaf09f8e Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Wed, 20 Nov 2013 21:18:29 +0900 Subject: [PATCH] Fix y2 x position --- c3.js | 2 +- c3.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c3.js b/c3.js index 25de8fb..e3523cd 100644 --- a/c3.js +++ b/c3.js @@ -202,7 +202,7 @@ currentWidth = getCurrentWidth(); currentHeight = getCurrentHeight(); bottom = 20 + __subchart_size_height + legendHeight; - right = __axis_y2_show && !__axis_rotated && !__axis_y2_inner ? 50 : 1; + right = __axis_y2_show && !__axis_rotated && !__axis_y2_inner ? 50 : 0; left = __axis_y_inner ? 0 : 40; top2 = currentHeight - __subchart_size_height - legendHeight; bottom2 = 20 + legendHeight; diff --git a/c3.min.js b/c3.min.js index 9e31a2a..18ad401 100644 --- a/c3.min.js +++ b/c3.min.js @@ -3,7 +3,7 @@ M(0))/2;L=c?0:U;switch(w){case "bottom":C=n;sa.attr("y2",D);Ca.attr("y",Math.max(D,0)+I);Ba.attr("x1",L).attr("x2",L).attr("y2",D);Da.attr("x",0).attr("y",Math.max(D,0)+I);fa.attr("dy",".71em").style("text-anchor","middle");fa.text(function(e){return l.length