From 69b8216742e09cdc06544ecaceeeeb0be6167b4a Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Sat, 11 May 2013 02:11:08 +0900 Subject: [PATCH] Fix line path when unvisible --- c3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c3.js b/c3.js index 8bcc37b..86a4486 100644 --- a/c3.js +++ b/c3.js @@ -205,7 +205,7 @@ // For main region var lineOnMain = function (d) { - return isLineType(d) ? lineWithRegions(d.values, __data_regions[d.id]) : ""//"M 0 0" + return isLineType(d) ? lineWithRegions(d.values, __data_regions[d.id]) : "M " + x(d.values[0].x)+ " " + y(d.values[0].value) } // For brush region @@ -214,7 +214,7 @@ .x(function(d){ return x2(d.x) }) .y(function(d){ return y2(d.value) }) return function (d) { - return isLineType(d) ? line(d.values) : ""//"M 0 0" + return isLineType(d) ? line(d.values) : "M " + x2(d.values[0].x)+ " " + y2(d.values[0].value) } })()