From 5ea824008dcbd9fb8fc30be6ed1108926fa4643d Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 23 Jul 2018 11:30:02 +0900 Subject: [PATCH] fix: backport #1891 to v0.4 (#2421) --- src/shape.line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shape.line.js b/src/shape.line.js index bdb03c7..6fa345c 100644 --- a/src/shape.line.js +++ b/src/shape.line.js @@ -80,7 +80,7 @@ c3_chart_internal_fn.generateDrawLine = function (lineIndices, isSub) { if (!config.line_connectNull) { line = line.defined(function (d) { return d.value != null; }); } return function (d) { var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values, - x = isSub ? $$.x : $$.subX, y = yScaleGetter.call($$, d.id), x0 = 0, y0 = 0, path; + x = isSub ? $$.subX : $$.x, y = yScaleGetter.call($$, d.id), x0 = 0, y0 = 0, path; if ($$.isLineType(d)) { if (config.data_regions[d.id]) { path = $$.lineWithRegions(values, x, y, config.data_regions[d.id]);