Browse Source

Fix update x domain for flow

pull/555/head
Masayuki Tanaka 11 years ago
parent
commit
26d9211763
  1. 4
      c3.js
  2. 2
      c3.min.js
  3. 4
      src/domain.js

4
c3.js

@ -1367,7 +1367,9 @@
}
// Trim domain when too big by zoom mousemove event
$$.x.domain($$.trimXDomain($$.x.orgDomain()));
if (!domain) {
$$.x.domain($$.trimXDomain($$.x.orgDomain()));
}
return $$.x.domain();
};

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

4
src/domain.js

@ -203,7 +203,9 @@ c3_chart_internal_fn.updateXDomain = function (targets, withUpdateXDomain, withU
}
// Trim domain when too big by zoom mousemove event
$$.x.domain($$.trimXDomain($$.x.orgDomain()));
if (!domain) {
$$.x.domain($$.trimXDomain($$.x.orgDomain()));
}
return $$.x.domain();
};

Loading…
Cancel
Save