Browse Source

PR #1576 -- Fixes issue of trying to flow data when there is no data to start (gh-1235)

pull/1671/merge
Jordan Kasper 9 years ago committed by Ændrew Rininsland
parent
commit
c50efe2e5c
  1. 2
      src/api.flow.js

2
src/api.flow.js

@ -202,7 +202,7 @@ c3_chart_internal_fn.generateFlow = function (args) {
translateX = diffDomain(domain) / 2; 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]); translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
} else { } else {
if ($$.isTimeSeries()) { if ($$.isTimeSeries()) {

Loading…
Cancel
Save