From c50efe2e5c406b3e11051e821e581faa8a91d40f Mon Sep 17 00:00:00 2001 From: Jordan Kasper Date: Thu, 11 Feb 2016 14:52:03 -0500 Subject: [PATCH] PR #1576 -- Fixes issue of trying to flow data when there is no data to start (gh-1235) --- src/api.flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.flow.js b/src/api.flow.js index 69b5f50..2abad3e 100644 --- a/src/api.flow.js +++ b/src/api.flow.js @@ -202,7 +202,7 @@ c3_chart_internal_fn.generateFlow = function (args) { translateX = diffDomain(domain) / 2; } } - } else if (flow.orgDataCount === 1 || flowStart.x === flowEnd.x) { + } else if (flow.orgDataCount === 1 || (flowStart && flowStart.x) === (flowEnd && flowEnd.x)) { translateX = $$.x(orgDomain[0]) - $$.x(domain[0]); } else { if ($$.isTimeSeries()) {